
In the command, make sure to update the path with the location where you have stored the ISO file. Type the following command to mount the ISO file and press Enter: PowerShell Mount-DiskImage -ImagePath "C:\path\to\Windows10.iso" Type the following command to quit the tool and press Enter: exit In the command, change X for any available letter you want to use. Type the following command to assign a volume and a drive letter for the USB flash drive and press Enter: assign letter=X Quick tip: If you’re creating a bootable media for a device that uses UEFI, you’ll need to format the drive using the “FAT32” file system, instead of “NTFS” with the format fs=FAT32 quick command. Type the following command to select the storage and press Enter: select disk 1 Type the following command to determine the USB flash drive and press Enter: list disk Type the following command to open DiskPart and press Enter: diskpart Search for Command Prompt, right-click the top result, and select the Run as Administrator option. To create a USB flash drive to install Windows 10, use these steps: Create USB bootable media to install Windows 10 Also, before proceeding, you will need to connect a USB flash drive with at least 8GB of space to your computer and the ISO file of Windows 10, which you can download with these steps.

In this guide, you will learn the steps to use Command Prompt to create a USB bootable media to install Windows 10. Although you can create a bootable USB to install Windows 10 using a variety of tools, including the Media Creation Tool and Rufus, it is also possible to use the DiskPart command-line tool to create a flash drive to clean install Windows 10 from Command Prompt.
