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

Instructions to change Google DNS 8.8.8.8 and 8.8.4.4

Instructions to change Google DNS 8.8.8.8 and 8.8.4.4

Google DNS 8.8.8.8 8.8.4.4 is one of the DNS chosen by many users, especially to increase network access speed or access blocked Facebook.

How to use TickTick desktop widget instead of to-do apps

How to use TickTick desktop widget instead of to-do apps

Once you put your to-do lists on Windows 11's widget panel, they start appearing in front of you every morning—and suddenly, it's not so easy to ignore them anymore.

How to Open Windows Security in Windows 10

How to Open Windows Security in Windows 10

Windows Security is turned on and proactively protects your device by scanning for malware, viruses, and other security threats.

How to Free Up 48GB on Windows 11 PC Without Losing Any Important Data

How to Free Up 48GB on Windows 11 PC Without Losing Any Important Data

Between temporary files, outdated backups, duplicate data, and unused apps, there are plenty of ways to reclaim space without touching your personal files.

How to view computer configuration easily and quickly

How to view computer configuration easily and quickly

There are many ways for you to view your computer configuration, view your laptop configuration.

Check MD5 and SHA1 to check file integrity

Check MD5 and SHA1 to check file integrity

We will use a specialized program to check the MD5 and SHA1 codes of the file to see if there are any errors in the file. And the MD5 check software HashCalc is one of the quite useful tools to check MD5 and SHA1 codes.

What is the AppData folder in Windows? When should I use it?

What is the AppData folder in Windows? When should I use it?

Have you ever stumbled upon the mysterious AppData folder while rummaging through files on your computer or trying to get a Minecraft mod to work?

How to show hidden files and folders on Windows 10/8/7

How to show hidden files and folders on Windows 10/8/7

To view hidden files, hidden folders, hidden system files on Windows is quite simple. Readers can see detailed instructions on showing hidden files and viewing file extensions in this article.

Fix Windows + Shift + S shortcut not working on Windows 10

Fix Windows + Shift + S shortcut not working on Windows 10

The Win + Shift + S shortcut in Windows 10 allows users to capture a portion or the entire screen and copy it to the clipboard. In most cases, this feature works as expected, but sometimes it can become unresponsive.

12 ways to quickly access Settings on Windows 10

12 ways to quickly access Settings on Windows 10

On Windows 10, Microsoft integrated a new application called Settings. This Settings application is a Metro application created by Microsoft to replace the classic Control Panel application.

List of useful Alt shortcuts to insert special characters in Windows

List of useful Alt shortcuts to insert special characters in Windows

Simply hold down the Alt key and type the corresponding number to insert a special character. If you have memorized the code of your favorite special character, you can insert it in less than a second.

Instructions for sharing files using Nearby Sharing Windows 11

Instructions for sharing files using Nearby Sharing Windows 11

Nearby Sharing Windows 11 is a built-in sharing feature on your computer that lets you send files or web pages directly to others.

How to fix IRQL NOT LESS OR EQUAL error on Windows

How to fix IRQL NOT LESS OR EQUAL error on Windows

The IRQL NOT LESS OR EQUAL error is a memory-related error that typically occurs when a system process or driver attempts to access a memory address without proper access permissions.

Turn off Windows Defender (Windows Security) on Windows 10, Windows 11

Turn off Windows Defender (Windows Security) on Windows 10, Windows 11

How to completely disable Windows Defender on Windows 10? There are several ways to disable Windows Defender on Windows 10, please see the detailed instructions below.

How to use IE Mode to replace the recently discontinued Internet Explorer

How to use IE Mode to replace the recently discontinued Internet Explorer

From Windows 11, Internet Explorer will be removed. In this article, WebTech360 will guide you how to use Internet Explorer on Windows 11.