Open the Command Prompt. You will need to run Command Prompt as an Administrator. Right-click on it and select Run as Administrator.
Open the disk management utility. This can be opened by entering the command disk part
Microsoft DiskPart version 10.0.15063.0
Copyright (C) Microsoft Corporation.
Display the connected disks. Type the command list disk to show a list of all the drives connected to your computer. Your USB drive should be listed here as well. Make note of the number next to your USB drive.
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
——– ————- ——- ——- — —
Disk 0 Online 465 GB 1024 KB *
Disk 1 Online 29 GB 29 GB
DISKPART> select disk 1
Disk 1 is now the selected disk.
Clean the flash drive. Enter the command clean to have the disk management utility verify the integrity of the USB drive, and erase all data.
DiskPart succeeded in cleaning the disk.
DISKPART> create partition primary
DiskPart succeeded in creating the specified partition.
DiskPart marked the current partition as active.
Format the USB drive. Input the command format fs=fat32. When you press Enter, the program will work for a few minutes (if it is a small USB, e.g. 32Gb could actually take hours to SLOW format
DISKPART> format fs=fat32
100 percent completed
DiskPart successfully formatted the volume.
DiskPart successfully assigned the drive letter or mount point.
Assign the USB a drive letter. Enter the command assign to give the thumb drive a letter designation. Type exit to end the disk management program.
You can then copy the contents of an operating installation disc onto the drive to create a portable installation drive.