If you read my old article about creating bootable USB with Diskpart for Windows and Bootable USB for Linux, then you know the usage of a bootable USB. So in this article we are going to make a bootable USB with PowerShell command for Windows operating system.
A bootable USB contains the Windows setups files and you can boot your system through USB flash drive. It works better and faster than DVD, or you may not have access to DVD but a USB drive is always near your hand.
Make Bootable USB with PowerShell
First you need to connect your USB drive to your computer. Windows 10 is more than 4GB, so try to use a USB flash drive that has at least 8GB capacity.
1. Press Windows button and type PowerShell then press Ctrl+Shift and press enter to run PowerShell as administrator.
2. Type “Get-Disk” and press enter to see the connected USB flash drive and your system hard disk.
3. To format a USB, type “Clear-Disk 1 -RemoveData” and press enter. It will remove the USB files. Make sure that assign the USB number not your hard disk.
4. The disk cleaned successfully. Now type “New-Partition -DiskNumber 1 -UseMaximumSize -IsActive:$true” and press enter to create the partition and activated as active disk for booting system through USB.
5. Now type “Get-Volume” and press enter to list all volumes or drives. Find the exact drive you want to format.
6. So, type “Format-Volume -DriveLetter K -FileSystem NTFS” and press enter to format the drive.
Finally the USB drive has formatted successfully. To install Windows with this USB, you must copy the contents of Windows image or DVD to this Bootable USB drive.