Skip to content

Instantly share code, notes, and snippets.

@heyseus1
Created April 25, 2019 23:48
Show Gist options
  • Save heyseus1/771a931b7ad3f8333c3b5a1a64b7f30d to your computer and use it in GitHub Desktop.
Save heyseus1/771a931b7ad3f8333c3b5a1a64b7f30d to your computer and use it in GitHub Desktop.
Initializes Sysprep to factory reset Windows 10
$sysprep = 'C:\Windows\System32\Sysprep\Sysprep.exe'
$args = '/generalize','/oobe','/reboot','quiet'
& $sysprep $args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment