Skip to content

Instantly share code, notes, and snippets.

@kenpb
Last active August 3, 2018 10:08
Show Gist options
  • Select an option

  • Save kenpb/89b87a0e5b47b41a1338 to your computer and use it in GitHub Desktop.

Select an option

Save kenpb/89b87a0e5b47b41a1338 to your computer and use it in GitHub Desktop.

Revisions

  1. kenpb revised this gist Sep 29, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions disable-windows-sleep.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    powercfg -change -standby-timeout-ac 0
  2. kenpb revised this gist Sep 21, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions disable-windows-firewall.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # 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
  3. kenpb created this gist Nov 23, 2015.
    3 changes: 3 additions & 0 deletions disable-windows-update.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    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