Skip to content

Instantly share code, notes, and snippets.

Avatar

Michal ZOBEC michalzobec

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