How to create USB Boot using Command Prompt

Creating a bootable USB for Windows operating system will be very simple if you know how to apply the right method. Besides using software that supports creating bootable USB such as Rufus , Hiren's boot ,... you also have another way to create a bootable USB without having to install any additional software on your computer. That is using Command Prompt.

Steps to use Command Prompt to create USB Boot to install Windows

If you don't want to use a third-party tool to create a bootable drive, you can use the Diskpart utility and Command Prompt to create installation media. Here's how to do it.

1. First, back up all the files on your USB drive and connect it to your PC.

2. Press the Win key , type cmd and click Run as Administrator in Command Prompt. You can also use PowerShell if you prefer that tool over Command Prompt.

How to create USB Boot using Command Prompt
Use Diskpart to create Windows 11 boot drive

3. In the Command Prompt window, type the following command and press Enter to launch the Windows Diskpart utility.

DISKPART

4. Next, type the following command to list all available storage devices:

LIST DISK

5. Here, locate your USB drive. You can look at the Size column to identify your USB drive. In this case, the USB drive is listed as Disk 2 .

6. Next, type the following command to select your drive:

SEL DISK 2

7. In the above command, replace DISK 2 with the number assigned to your USB drive. For example, if you have an SSD or SATA drive setup, your primary drive will show up as DISK 0 and the USB drive as DISK 1 . It is extremely important that you select the correct drive because the next step involves wiping the selected drive.

8. After the drive is erased, type the following command and press Enter to erase all contents from the drive:

Clean

9. Next, type the following command to create the primary partition:

Create Partition Primary

10. After creating the primary partition, type the following command to select the primary partition:

List Par

11. Command Prompt will display details about your USB drive.

How to create USB Boot using Command Prompt
Format USB drive in Windows 11 using CMD

12. Type the following command and press Enter to activate the partition:

Active

13. Then type the following command to format the USB drive. It is important to format the drive in NTFS format because FAT32 format will cause incorrect parameter error.

FORMAT FS=NTFS LABEL=“BootableUSB” QUICK OVERRIDE

14. Once finished, type Exit and press Enter to exit the Disk Part utility.

Now, you will need to mount the ISO image and then move its contents to your USB drive.

Mount Windows 11 ISO image in Command Prompt

1. To do this, type the following command and press Enter to mount the Windows 11 ISO file:

PowerShell Mount-DiskImage -ImagePath "C:\Users\UserName\Downloads\Win11_English_x64v1.iso"

2. In the above command, replace the file path with the location of your Windows 11 ISO.

How to create USB Boot using Command Prompt
List volume in CMD

3. Once the ISO is mounted, type the following command to launch Diskpart.

Diskpart

4. Next, type the following command to display available volumes.

List volume

5. This will help you determine the drive letter for the mounted ISO file. In the Type column , the mounted ISO will be listed as DVD-ROM. And the Ltr column lists the letter associated with the volume. Make a note of the details about the ISO volume as you will be using it later.

How to create USB Boot using Command Prompt
List volume in CMD Windows 11

6. Once you have the volume details for the mounted ISO, enter the following command to exit Diskpart:

Exit

7. Next, type the mounted ISO volume letter and press Enter. For example, if your mounted ISO volume letter is J, type the following command and press Enter .

J:

8. Type the following command to boot from CD:

cd boot

9. Next, type the following command to apply the Bootmgr-compatible master boot code to the USB flash drive:

Bootsect /nt60 I:

10. In the above command, replace I with the drive letter associated with your USB flash drive.

How to create USB Boot using Command Prompt
Copy ISO file to USB

11. Next, type the following command and press Enter to copy the Windows 11 system files to the USB flash drive:

xcopy J:\*.* I:\ /E /F /H

12. In the above command, replace K: and I: with the Mounted ISO Volume and  USB drive letters   respectively.

13. This process may take 5-10 minutes to complete. If Command Prompt gets stuck, that is normal, so just wait until the process is complete.

14. If successful, you will see a Files(s) Copied message .

That's it! You can now use the bootable USB to clean install Windows 11.

Good luck!

See more articles below:

Sign up and earn $1000 a day ⋙

Leave a Comment

The methods and customizations in this article will help speed up your Windows 10 like the wind.

The methods and customizations in this article will help speed up your Windows 10 like the wind.

Do you want to speed up Windows 10, improve Windows 10 speed or speed up Windows 10 startup? All ways to speed up Windows 10 are in this article, please read and apply to make your Windows 10 computer run faster!

What is PING? How to test PING?

What is PING? How to test PING?

In the article below, we invite you to learn some simple examples of the PING command on Windows!

How to Open and Use MSConfig on Windows 10

How to Open and Use MSConfig on Windows 10

MSConfig is a versatile tool that is great for managing the startup process on your computer. It can also be used for more than just troubleshooting performance and stability issues.

6 Ways to Run Software with Administrator Rights in Windows

6 Ways to Run Software with Administrator Rights in Windows

Running some programs with administrator rights is often necessary for full functionality, especially for system tools or file editing and settings software.

How to fix BSOD Memory Management error

How to fix BSOD Memory Management error

Have you ever encountered the Windows Memory Management blue screen of death error? This common Windows Stop Code is annoying, but there are some simple fixes for Windows Memory Management errors.

Most people dont use these hidden features in Windows Security.

Most people dont use these hidden features in Windows Security.

Windows Security does more than just protect against basic viruses. It protects against phishing, blocks ransomware, and prevents malicious apps from running. However, these features aren't easy to spot—they're hidden behind layers of menus.

Follow these 7 steps to keep Windows 11 from slowing down again!

Follow these 7 steps to keep Windows 11 from slowing down again!

From deleting temporary files to updating software, there are many simple and effective ways to keep your computer running smoothly like new.

Heres how to create a virtual hard drive (Virtual Hard Disk) on Windows 10

Heres how to create a virtual hard drive (Virtual Hard Disk) on Windows 10

Basically, a Virtual Hard Disk (VHD) is a file format that contains structures that are “exactly” identical to the structure of a hard drive.

Why is there a lock icon on the drive and how to remove it?

Why is there a lock icon on the drive and how to remove it?

Wondering why there is a lock icon on a drive in File Explorer? This article explains what it is and how to remove the lock icon from a drive in Windows 10.

How to use SpeedFan to check CPU temperature and computer fan speed

How to use SpeedFan to check CPU temperature and computer fan speed

SpeedFan tool checks your computer's temperature, CPU usage, and fan speed so you can cool it down.

10 Great Windows Features That Many People Dont Use

10 Great Windows Features That Many People Dont Use

From killing frozen apps right on the taskbar to automatically locking your computer when you walk away, there are plenty of tools you'll wish you'd discovered sooner.

3 Tools You Need to Remove Windows 11 Tracking

3 Tools You Need to Remove Windows 11 Tracking

Don't completely trust the default settings when it comes to privacy. Windows 11 is no exception, as it often oversteps its bounds when it comes to data collection.

How to download Windows 10, download Windows 10 ISO file from Microsoft

How to download Windows 10, download Windows 10 ISO file from Microsoft

When downloading Windows 10 from Microsoft, you will download Windows 10 as an ISO file. From this Windows 10 ISO file, you can use it to create a bootable USB, a Windows installation USB, or a computer ghost. Let's see how to download Windows 10!

Windows 11 is about to let you transfer data from your old PC during setup — heres how

Windows 11 is about to let you transfer data from your old PC during setup — heres how

Microsoft will officially stop supporting Windows 10 in less than three months, which means millions of users will have to upgrade to new hardware to run Windows 11.

How to send password protected files without buying software

How to send password protected files without buying software

You don't need to spend a dime to secure your documents and other important data. Use trusted free apps to lock everything down and send it securely to anyone.