Create Bootable Windows 10 USB Flash Drive With PowerShell

Channel:
Subscribers:
877,000
Published on ● Video Link: https://www.youtube.com/watch?v=Z8lWZHvi1Pw



Duration: 6:02
10,413 views
365


Create Bootable Windows 10 USB Flash Drive With PowerShell

This is an easy way to make a bootable windows 10 USB drive. Credit goes to Mike F Robbins
http://mikefrobbins.com/2018/01/18/use-powershell-to-create-a-bootable-usb-drive-from-a-windows-10-or-windows-server-2016-iso/

Warning: Use this command at your own risk, it will permanently delete all of the data on the selected USB drive.

Use PowerShell to Create a Bootable 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



$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


Set-Location -Path "$($ISO):\boot"
bootsect.exe /nt60 "$($Results.DriveLetter):"
Copy-Item -Path "$($ISO):\*" -Destination "$($Results.DriveLetter):" -Recurse -Verbose


Join our forum
http://www.briteccomputers.co.uk/forum







Tags:
Create Bootable Windows 10 USB Flash Drive With PowerShell
Create
Bootable
USB
Flash Drive
PowerShell
Windows 10
Bootable Windows 10 USB
Script
Command
Windows Server 2016
USB drive
USB Thumb Drive
Use PowerShell to Create a Bootable USB Drive
Scripting
ISO file
ISO
How to
Tutorial
Step by Step
Guide
Windows PowerShell
Britec
Create a Bootable USB Drive
Help
USB Install Media for Windows 10
USB Stick