Create a bootable USB drive using Windows Powershell.
1. Step 1 would be the same as the previous method we would need the ISO file of the latest version of Windows. So you can follow the same steps mentioned in the above method to download the ISO file and once it is downloaded move to the next step.
2. Right-click on the start button and open Windows Powershell in admin mode.
3. Paste the following command in the PowerShell and press enter to format your USB drive.
$Results = Get-Disk |
Where-Object BusType -eq USB |
Out-GridView -Title 'Select USB Drive to Format' -OutputMode Single |
Clear-Disk -RemoveData -RemoveOEM -Confirm:$false -PassThru |
New-Partition -UseMaximumSize -IsActive -AssignDriveLetter |
Format-Volume -FileSystem FAT32
4. An interface will open to select the USB drive, make sure you have plugged in the right USB drive that you want to boot, select the required USB drive, and then click on OK.
5. Then paste the following command in the PowerShell and press Enter.
$Volumes = (Get-Volume).Where({$_.DriveLetter}).DriveLetter
Mount-DiskImage -ImagePath C:\ISO\Windows.ISO
$ISO = (Compare-Object -ReferenceObject $Volumes -DifferenceObject (Get-Volume).Where({$_.DriveLetter}).DriveLetter).InputObject
Note: Before pressing Enter make sure you have mentioned the right path for your ISO file. As in my case the ISO file was placed in my C drive in a folder named ISO, you can also do the same or else you can modify the command a little bit as per your file path. You can modify the second line of the above command after ImagePath to add your own file path if you want
6. Now paste the following command in the PowerShell and press enter
Set-Location -Path "$($ISO):\boot"
bootsect.exe /nt60 "$($Results.DriveLetter):"
Copy-Item -Path "$($ISO):\*" -Destination "$($Results.DriveLetter):" -Recurse -Verbose
7. Wait a little bit once the command is executed successfully you will see the following screen. If in the bottom left of the PowerShell, you can see the boot command it means your USB drive has been booted successfully.
8. Open your USB drive, and you will be able to see the following files, this means that your USB Bootable drive is ready.
9. Now you can eject your USB drive and use it to install Windows/Linux in your system.
Once you have followed all the steps mentioned above, your bootable USB drive will be ready to use. You can simply use it to install Windows/ Linux on your system, run diagnostic tools, or recover from a system failure. So it is recommended to always keep a bootable drive ready to avoid any kind of system failures or consequences.
We hope that the methods and solutions We’ve suggested in this article will help you to create a bootable USB drive for your Windows/Linux installation. Stay connected, stay informed, and enjoy your online journey!
Create Windows 10 Bootable USB Stick With PowerShell
Windows is one of the most used operating systems which was launched by Microsoft back in 1985. The latest version of Windows is 10/11 which is mostly used all over the world. In some scenarios, the users may face problems related to their windows like their windows may get corrupted, may get affected by malware, or become slow and choppy.
In such cases, the best method to fix this issue is a fresh installation of the windows in your system for which you will need a bootable pendrive. A Bootable Pendrive is a disk that is used to boot up a system for the installation of Windows. In today’s article, we will learn how to create a bootable USB device through Windows Powershell / command line interface(cmd).
Before deep diving into the methods to create a bootable USB device let us understand what is a bootable drive and why do we need a bootable USB drive to install Windows/Linux.
Contact Us