How To Make Bootable USB Drive Using Command Prompt

Booting Windows from CD or DVD has become old fashion. These days, Bootable USB Drives are being used to install operating systems. Bootable Pendrives or USB Drives are more portable and easy to handle, while CDs or DVDs are not easy to handle, even a single scratch can ruin it. This tutorial shows how to make Bootable USB Drive Using command Prompt. This method doesn’t require any third party software. You just need command prompt utility which is already available in all versions of Windows. Let’s proceed.

What We Need?

  • A PC running Windows Vista or Higher.
  • USB Pendrive of at least 4GB capacity.
  • Windows Vista/7 DVD/ISO or setup files copied on any Local Disk Drive.

How to make Bootable USB Drive Using command Prompt?

Step 1

Insert USB drive in USB port and Windows Vista/7 CD into CDROM. Note down the Drive letters of both USB Disk and CDROM. In my case USB drive has letter E: and CDROM has letter D:.

How To Make Bootable USB Drive For Windows 7, 8, 8.1, 10 Using Command Prompt - Note down drive letters

Step 2

Click on Start and type cmd in search box. Right-click on cmd in search results and select Run as Administrator.

Now open the disk management utility. Type command diskpart and press Enter. This will open Diskpart utility. After that type following command and press Enter

list disk

Note disk no. of your USB Disk (it’s 2 in our case). Now select your USB drive by entering command.

select disk 2
How To Make Bootable USB Drive For Windows 7, 8, 8.1, 10 Using Command Prompt - Open CMD and Diskpart Utility

Step 3

Now clean your USB disk. Type clean and press Enter.


How To Make Bootable USB Drive For Windows 7, 8, 8.1, 10 Using Command Prompt - Clean USB Drive

Step 4

Select your USB disk by entering following command-

select disk 2

Replace 2 with the number your USB drive has. Now type these commands one-by-one and press Enter after every command.

create partition primary
select partition 1
format fs=NTFS

Formatting may take a little time depending on the size of the drive.

How To Make Bootable USB Drive For Windows 7, 8, 8.1, 10 Using Command Prompt - Make Primary Partition and Format USB Drive

Step 5

After formatting is done, type assign and press Enter. Now exit DiskPart Utility by entering exit command. DO NOT close Command Prompt yet.
In command prompt go to your CD-Drive (in our case it is drive D:).

cd boot

Now type following command for writing bootcode to USB drive.

bootsect /nt60 E:

(E: is drive letter of USB disk.)

How To Make Bootable USB Drive For Windows 7, 8, 8.1, 10 Using Command Prompt - Creating Boot Sector

Step 6

Now the USB drive has been made bootable, close Command Prompt and copy all Windows files from CD-Drive to USB drive.

How To Make Bootable USB Drive For Windows 7, 8, 8.1, 10 Using Command Prompt - Copy windows files to usb drive

Make Bootable USB using Command Prompt

Now you can install Windows from this USB drive. However, this method may not be feasible for everyone as not many people are handy with command prompt. For installing Windows from bootable USB drive, you have to setup your computer to boot from Removable Media i.e. USB drive. Check this tutorial for making necessary changes to BIOS settings.

You can also use Rufus to make bootable USB drive if you don’t want to get your hands dirty with cmd commands. Check this tutorial to make bootable USB using Rufus.

About Aslam Khan

Hi there, I am a blogger, engineer and a computer geek. I love kittens. I spend some of my time blogging besides full time job as Senior Windows Administrator. I like to learn new things.


  1. Diskpart is amazing utility.. works best

  2. What to do after making bootable USB???
    What’s next?

  3. I have my own blog and might bid on projects to blog for others. I believe there are some guidelines out there around what is allowed or not regarding images posted on public blogs (such as copyright rules, licensing, or trademarks). Is there anywhere to go to find industry guidelines for blog post images?.

  4. I’d have to seek advice from you here. Which isn’t some thing Which i do! I like reading an article that should get people to believe. Also, thank you for allowing me to comment!

  5. Rufus is better and easy to use, but this method is cool!

  6. Good post. I be taught something more difficult on different blogs everyday. It’ll at all times be stimulating to learn content from different writers and observe a bit something from their store. I’d want to make use of some with the content on my blog whether or not you don’t mind. Natually I’ll offer you a link in your web blog. Thanks for sharing.

  7. Very well explained. I like the way, you added snaps and explained commands. Thanks!

  8. Cool bro!
    can we make bootable pendrive for windows xp using this method?

  9. hola, genial tu blog

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.