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

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Error code 0xc0000098 in Windows causes a blue screen error on startup. The ACPI.sys driver is often to blame, especially on unsupported versions of Windows 11 like 23H2 or 22H2 or Windows 10.

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

In some cases, sometimes you start your computer in Safe Mode and the computer freezes. So how to fix the error in this case, please refer to the article below of WebTech360.

How to fix Snipping Tool keeps showing error

How to fix Snipping Tool keeps showing error

Snipping Tool is a powerful photo and video capture tool on Windows. However, this tool sometimes has some errors, such as constantly displaying on the screen.

How to get the fastest internet connection from your router

How to get the fastest internet connection from your router

Every network has a router to access the Internet, but not everyone knows how to make the router work better. In this article, we will introduce some router tips to help speed up the wireless connection in the network.

Common Mistakes When Performing Internet Speed ​​Tests

Common Mistakes When Performing Internet Speed ​​Tests

If the results seem slower than expected, don't be too quick to blame your ISP - mistakes when performing the test can skew your numbers.

What is QoS? How to use QoS for faster Internet speeds when you need it most

What is QoS? How to use QoS for faster Internet speeds when you need it most

In the article below, we will introduce and guide you to learn about the concept of QoS - Quality of Service on router devices.

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Windows has a built-in Credential Manager, but it's not what you think it is—and certainly not a replacement for a password manager.

How to install free HEVC codecs on Windows 10 (for H.265 video)

How to install free HEVC codecs on Windows 10 (for H.265 video)

Microsoft charges for its official codecs and doesn't include them in Windows 10. However, you can get them for free without pulling out your credit card and spending $0.99.

Instructions to fix Access Denied error when accessing files or folders on Windows

Instructions to fix Access Denied error when accessing files or folders on Windows

While having trouble accessing files and folders can be frustrating, don't panic—with a few simple tweaks, you can regain access to your system.

How to check if USB Boot has been created successfully?

How to check if USB Boot has been created successfully?

After creating a USB boot to install Windows, users should check the USB boot's performance to see if it was created successfully or not.

4 Types of Windows Data That Are Growing in Size: How to Control Them?

4 Types of Windows Data That Are Growing in Size: How to Control Them?

Although Windows Storage Sense efficiently deletes temporary files, some types of data are permanent and continue to accumulate.

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

You can turn off Windows 11 background apps to optimize performance, save battery and reduce RAM consumption.

Instructions to fix the error “Network path was not found” in Windows

Instructions to fix the error “Network path was not found” in Windows

When a computer, mobile device, or printer tries to connect to a Microsoft Windows computer over a network, for example, the error message network path was not found — Error 0x80070035 may appear.

How to block Internet connection of Windows 10 software and applications

How to block Internet connection of Windows 10 software and applications

We can block Internet access for any application or software on the computer, while other programs can still access the network. The following article will guide readers on how to disable Internet access for software and applications on Windows.

How to Stay Safe on Windows 10 Until 2030

How to Stay Safe on Windows 10 Until 2030

Instead of paying $30 for a year of security updates, keep Windows 10 safe until 2030 with this simple solution.