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

How to create USB Boot using Command Prompt

How to create USB Boot using Command Prompt

Creating a bootable USB to install Windows is becoming more and more popular, there are many software that help create a bootable USB with just a few clicks. But if you are familiar with Command Prompt, you can use this tool to create a bootable USB without installing additional software.

How to Restore WordPad in Windows 11

How to Restore WordPad in Windows 11

Microsoft is killing off its free rich text editor WordPad at the end of 2023 in an effort to transition users to premium Office apps.

How to Take Scrolling, Long Screenshots in Windows

How to Take Scrolling, Long Screenshots in Windows

This guide shows the best tools for taking long, scrolling screenshots in Windows 11 and Windows 10.

How to Set Windows Photo Viewer as Default Photo Viewer on Windows 11

How to Set Windows Photo Viewer as Default Photo Viewer on Windows 11

Windows Photo Viewer was first released alongside Windows XP and has quickly become one of the most frequently used tools on Windows.

Windows 11 is about to add a system configuration advice section

Windows 11 is about to add a system configuration advice section

The latest previews of Windows 11 that Microsoft released this week include an improved About section in the Settings app, where users can get more information about the hardware inside their computer.

Windows 11 now lets users easily type with an Xbox controller

Windows 11 now lets users easily type with an Xbox controller

To address common issues faced by PC gamers, Microsoft has finally made the Windows operating system easier to navigate with an Xbox controller.

AMD Officially Requires Windows 11 for Latest Graphics Cards

AMD Officially Requires Windows 11 for Latest Graphics Cards

In its new UEFI support document, AMD states that Radeon GPUs from the 9000 series onwards will only officially support UEFI mode.

How to update graphics drivers in Windows 10 and 11

How to update graphics drivers in Windows 10 and 11

Updating your graphics card driver to the latest version can help fix issues with screen resolution, games, and your computer's overall graphics performance.

Learn about the nature of UAC in Windows and how to use this setting to control Windows user permissions

Learn about the nature of UAC in Windows and how to use this setting to control Windows user permissions

In the following article, Quantrimang.com will go into the specific details of what UAC is, how UAC works, and the benefits of enabling this feature in any version of Windows.

Useful Tips to Never Run Out of Windows Storage Space

Useful Tips to Never Run Out of Windows Storage Space

Constant low storage notifications can drive you crazy, so start implementing smart habits to make sure you never run out of storage!

Enable GodMode on Windows 10, 8 and 7

Enable GodMode on Windows 10, 8 and 7

GodeMode is called Shortcut Windows Master Control Panel. GodMode (or God Mode) is a control panel, allowing you to set up and access everything on your Windows operating system.

How to turn off location request notifications on Windows 11

How to turn off location request notifications on Windows 11

Starting with Windows 11 build 25977, Microsoft has added an option to turn off location request notifications to help you manage which apps have location access.

Windows 11 updates silently create a mysterious folder on the C drive

Windows 11 updates silently create a mysterious folder on the C drive

The April security updates for Windows 11 silently created a new empty folder on the C drive.

How to delete the Learn More About This Picture icon Windows 11

How to delete the Learn More About This Picture icon Windows 11

The Spotlight wallpaper on the Windows 11 desktop and lock screen has an annoying “Learn More About This Picture” icon. Here is a guide to remove the “Learn More About This Picture” Windows 11 icon.

9 ways to open Apps & Features tool on Windows 11

9 ways to open Apps & Features tool on Windows 11

The Apps & Features control panel is the settings equivalent to the Programs and Features tool from the Control Panel.