Skip to content

Instantly share code, notes, and snippets.

@jahands
Created September 20, 2017 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jahands/7c40c33bfdbd282d8f0022f8dea8fdbc to your computer and use it in GitHub Desktop.
Save jahands/7c40c33bfdbd282d8f0022f8dea8fdbc to your computer and use it in GitHub Desktop.
Boxstarter Commands for a new Windows box.
$auPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\{8FA01A01-4B9C-4A5F-9E4B-5242B1CA676A}Machine\Software\Policies\Microsoft\Windows\WindowsUpdate\AU"
New-Item $auPath -Force
Set-ItemProperty -Path $auPath -Name NoAutoRebootWithLoggedOnUsers -Type DWord -Value 1 -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment