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:

Leave a Comment

How to Use Windows 11 Quick Assist for Help

How to Use Windows 11 Quick Assist for Help

Discover how to use Windows 11 Quick Assist for seamless remote support. Learn step-by-step setup, troubleshooting, and tips to help friends or family with tech issues instantly.

Troubleshooting Windows 11 Dual Monitor Lag Fixes

Troubleshooting Windows 11 Dual Monitor Lag Fixes

Struggling with dual monitor lag on Windows 11? Discover proven troubleshooting fixes to eliminate stuttering, delays, and performance issues for seamless multi-monitor setups. Step-by-step guide inside.

How to Fix Windows 11 Startup Settings Blank Error

How to Fix Windows 11 Startup Settings Blank Error

Struggling with the frustrating Windows 11 "Startup Settings" blank error? Discover proven, step-by-step fixes to restore your boot options quickly and get your PC running smoothly again. No tech expertise needed!

How to Activate Windows 11 Enterprise with KMS

How to Activate Windows 11 Enterprise with KMS

Discover how to activate Windows 11 Enterprise using KMS effortlessly. This comprehensive guide covers everything from requirements to troubleshooting, ensuring seamless activation for your business needs.

How to Fix Windows 11 Kmode Exception Not Handled

How to Fix Windows 11 Kmode Exception Not Handled

Struggling with the dreaded KMODE EXCEPTION NOT HANDLED error on Windows 11? Discover proven, step-by-step fixes to resolve this blue screen nightmare quickly and get your PC running smoothly again. No tech expertise needed!

Troubleshooting Windows 11 Motherboard Driver Error Fix

Troubleshooting Windows 11 Motherboard Driver Error Fix

Struggling with Windows 11 "Motherboard" Driver Error? Discover proven troubleshooting steps to fix it fast and get your PC running smoothly again. Easy, step-by-step guide for beginners.

How to Fix Windows 11 Ping Spikes Over Wi-Fi Fixes

How to Fix Windows 11 Ping Spikes Over Wi-Fi Fixes

Struggling with ping spikes on Windows 11 over Wi-Fi? Discover proven fixes to stabilize your connection, reduce lag, and enjoy smooth gaming or streaming. Step-by-step solutions for instant results.

How to Recover Deleted Photos in Windows 11

How to Recover Deleted Photos in Windows 11

Accidentally deleted precious photos? Discover proven methods to recover deleted photos in Windows 11 effortlessly. Step-by-step guides, tools, and tips to restore your images safely.

How to Use Windows 11 Terminal Instead of CMD

How to Use Windows 11 Terminal Instead of CMD

Discover how to use Windows 11 Terminal instead of CMD for a modern, efficient command-line interface. Learn installation, setup, and tips to boost your productivity with tabs, themes, and more.

How to Activate Windows 11 Pro Without a Product Key

How to Activate Windows 11 Pro Without a Product Key

Discover safe, legitimate ways to activate Windows 11 Pro without a product key. Learn step-by-step methods using built-in tools and official Microsoft options to get your OS up and running smoothly. No risks, no hassle – just pure productivity.

Fixing Battery Drain During Hibernate in Windows 11

Fixing Battery Drain During Hibernate in Windows 11

Struggling with battery drain during hibernate in Windows 11? Discover expert fixes to preserve your laptop

How to Fix Windows 11 Input Lag for Valorant and CS2

How to Fix Windows 11 Input Lag for Valorant and CS2

Struggling with input lag in Windows 11 while playing Valorant or CS2? Discover proven, step-by-step fixes to restore smooth gameplay and boost your performance. Say goodbye to delays and hello to precision shots.

How to Fix Out of Memory Error in Microsoft Edge

How to Fix Out of Memory Error in Microsoft Edge

Struggling with the frustrating "Out of Memory" error in Microsoft Edge? Discover proven, step-by-step fixes to reclaim your browsing speed and stability. Updated with the latest tips for optimal performance.

How to Fix Windows 11 Google Drive Not Launching Fix

How to Fix Windows 11 Google Drive Not Launching Fix

Struggling with Google Drive not launching on Windows 11? Discover proven fixes to resolve the issue fast, from restarts to advanced troubleshooting. Get your cloud storage working seamlessly today!

How to Disable Gamebar Presence Writer for Performance

How to Disable Gamebar Presence Writer for Performance

Discover how to disable Game Bar Presence Writer on Windows to optimize gaming performance. Step-by-step guide to reduce lag, boost FPS, and enhance your setup for smoother gameplay. Essential tips for gamers in 2026.