Skip to content

Instantly share code, notes, and snippets.

View apharp's full-sized avatar

Andy Harp apharp

View GitHub Profile
# minimum size of USB stick 5.29GB
# Set here the path of your ISO file
$iso = "C:\path\to\Downloads\ISO\Server 2016\en_windows_server_2016_x64_dvd_9718492.iso"
# Clean ! will clear any plugged-in USB stick!!
Get-Disk | Where BusType -eq 'USB' |
Clear-Disk -RemoveData -Confirm:$true -PassThru
# Convert GPT