Skip to content

Instantly share code, notes, and snippets.

@kenpb
Last active August 3, 2018 10:08
Show Gist options
  • Save kenpb/89b87a0e5b47b41a1338 to your computer and use it in GitHub Desktop.
Save kenpb/89b87a0e5b47b41a1338 to your computer and use it in GitHub Desktop.
Disable windows stuff
# source: https://blogs.technet.microsoft.com/heyscriptingguy/2012/10/28/powertip-use-powershell-to-enable-the-windows-firewall/
# older Wins: netsh advfirewall set allprofiles state off
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
powercfg -change -standby-timeout-ac 0
New-Item HKLM:\SOFTWARE\Policies\Microsoft\Windows -Name WindowsUpdate
New-Item HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate -Name AU
New-ItemProperty HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU -Name NoAutoUpdate -Value 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment