Saturday, March 24, 2018
Use PowerShell to Create a Bootable 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
Subscribe to:
Post Comments (Atom)
Pin Not Available
Crazy Error I had not seen before. Pin not available blah blah. I restarted a few times and it finally worked. If it doesn't some say to...
-
Go here http://en.savefrom.net / and paste the youtube url or just instert "ss" between "www." and "youtube" ...
-
This is a good tutorial link. * * * Honestly, Virtual Box will work on larger variety of PCs * * * But don't kid yourself. It is painfu...
-
In my quest to set up the "perfect" program install worksheet for Windows. Priorities are easy update, easy install besides useful...
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.