Create a bootable USB with CMD commands

You are thinking of creating a Windows 10 bootable USB drive and you like to what about the command line tool? Below we will see how you can do it without the Windows 10 Media Creation Tool (x86 - x64) because you just like to use the command line.win-10-bootable-usb

Before you start, you'll need it Windows 10 .ISO – you can download this from various unofficial sources, but also from Microsoft itself, via the Windows 10 Media Creation Tool.

Open the command line as (αναζήτηση για cmd, κάντε δεξί κλικ και επιλέξτε “Εκτέλεση ως ”), πληκτρολογήστε “diskpart” χωρίς τα εισαγωγικά και πατήστε enter.

Alternatively, open the Start menu, type "diskpart" without the quotation marks, and click Yes if prompted by UAC.

Connect your USB drive. Type "list disk" without quotes and press enter.

From the Size column, you can understand where your USB drive is located

windows_10_usb_9

Our USB is in the 1 number, so we will type the next command that is "select disk 1" without quotes. Press enter.

If you have not made a backup of your USB content, it is your last chance.

Immediately then type "clean" without quotes and press enter to delete the USB.

windows_10_usb_11

We will now prepare the USB to become bootable. Type "create partition primary" without quotes and press enter.

Then type "select partition 1" without the quotation marks and press enter.

Immediately after "active" without quotes and press enter.

Finally, type the command “ fs=fat32” without quotes and press enter. The command will format your USB drive in FAT32 format using the quick routine. (If you choose to use to NTFS instead of FAT32, you will then need to run a different command to pass compatible boot manager files to your USB so that the device is bootable.)

This process will take some time, depending on the size and speed of your USB drive.

Immediately after, type “assign” without the quotes and press enter to assign a new one drive to your USB. Your USB drive will probably open automatically (if it doesn't, you'll find it on My Computer or This Computer). Remember the drive letter (in our case it is H).

windows_10_usb_16

You can now extract the contents of the .ISO file (from Windows Explorer or using your favorite export tool, and copy them directly to the USB.

Another way is to mount the .ISO with your favorite tool (we used UltraISO) and from there to make the command line transfer as described below:

Close the diskpart window and reopen cmd.

Type "xcopy g: *. * / S / e / fh:" without the quotation marks, where "g:" is the drive letter that contains the .iso file and "h:" is the USB letter. Don't worry if install.wim takes a while to copy: It's the largest file on the disk.

Type "exit" without the quotation marks and press enter.

You're done. Now you can install Windows 10 from your USB drive.

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.100 registrants.

Written by Dimitris

Dimitris hates on Mondays .....

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).