How to Create a Bootable USB Flash Drive in Windows Using CMD
Last Updated :
21 Jun, 2025
Want to install a new Windows operating system using a USB drive and looking for a way to make it bootable? You can do it easily with a built-in tool on your computer—CMD (Command Prompt) without using any third-party software.
In this guide, we’ll show you 12 easy steps to create a bootable USB flash drive using CMD. You'll learn how to format the drive, set it up properly, and prepare it to install Windows (or even Linux). Let’s get started!
How to Create a Bootable USB Flash driveWhy Use CMD to Create a Bootable USB?
CMD is a built-in tool in Windows that provides full control over disk operations. It allows you to format drives, mark partitions as active, and prepare USB devices for booting all without downloading any software.
Steps to Create a Bootable Windows USB Using CMD
Here are the 12 steps to create a bootable USB flash drive using Command Prompt:
Step 1: Open CMD as Administrator
Run the Command Prompt in Administrator mode. There are two ways to do the same:
- Press Start , Search for CMD , right-click on it, and select Run as Administrator.

- Or, press ctrl + shift + Esc to Open Task Manager, click on File -> Run new task, search for CMD and press enter.

Step 2: Connect the USB Drive
- Insert the USB Device that you want to make bootable.
Step 3: Use Diskpart Command
- Type the command diskpart and then press Enter.

Step 4: Use List Disk Command
- Type the command list disk to display a list of all the available storage devices on your system. Press Enter to continue.

Step 5: Select the USB Drive
- Identify your USB disk from the list. Usually, it's labeled as Disk 1. Select it using:
Note: Generally, it is marked as Disk 1, it might vary from system to system. Make sure not to select any other available disk as it will get formatted.

- To make a pen drive bootable, there is a need to format it to clean the existing data. This can be done by the use of clean commands.

Step 7: Create Partition
- Type the command create partition primary and press Enter. This will make the disk primary and ready to be made bootable.

Step 8: Select Partition as Primary
- To choose the partition created as primary, type the command select partition 1, and press Enter.

- Before making the disk bootable, you need to format it as NTFS if you are using legacy BIOS. This can be done with the use of a command format fs=ntfsquick and press Enter.
Note: If you are using Unified Extensible Firmware Interface or in simple words UEFI BIOS then you must type in the following command instead. Most modern systems are UEFI systems, you can check your system manufacturer's website to know whether your system is legacy BIOS or UEFI BIOS.
format fs=fat32 quick

Step 10: Use Active Command
- Type the command active and press Enter. This will mark the primary bootable partition as Active.

Step 11: Use Diskpart to Exit
- Type the command exit to exit DISKPART and press Enter. Now close the command prompt window.

Step 12: Copy Data to Bootable
- Now copy all the data from the OS installation disk to your USB drive that is just been made bootable.
Conclusion
Creating a bootable USB flash drive using CMD is a reliable and efficient way to install or repair your Windows (or Linux) system. It gives you full control, doesn’t require third-party software, and works across both BIOS and UEFI systems. Follow these steps, and you’ll have a fully functional bootable USB ready to go!
Similar Reads
How to Create Bootable USB Drive For Windows 11 Creating a bootable USB drive is essential for installing or reinstalling Windows especially if you're facing an issue with your system. This method allows for a clean installation, system repairs, or upgrades from previous versions of Windows. So whether you're upgrading from an older OS, troublesh
7 min read
How to Create a Multi-ISO Bootable USB Drive? Creating a multi-ISO bootable USB drive allows you to store and boot multiple operating systems or utilities from a single USB stick. This can be incredibly useful for IT professionals, system administrators, or anyone who frequently switches between different operating systems or diagnostic tools.
5 min read
How to Create a Batch File in Windows? A batch file is a straightforward text document in any version of Windows with a set of instructions meant to be run by Windows' command-line interpreter (CMD) by maintaining all the functions. Batch files are a great tool for streamlining internally configured processes, automating tedious jobs, an
5 min read
How to Install Windows 10 From a USB Flash Drive? Installing Windows 10 from a USB flash drive is one of the most efficient ways to set up or upgrade your operating system. Whether youâre installing Windows 10 on a new PC or performing a clean installation on your existing device, using a bootable USB drive simplifies the process. This method allow
6 min read
How to Create a WiFi Hotspot in Windows 8 using Command-prompt? WiFi (Wireless Fidelity) hotspot is a network with an area where wireless access to the internet is available. These are Internet access points that allow you to connect to a WiFi network using your computer, smartphone, or another device while away from your home or office network. There are lots o
2 min read