Skip to content

Instantly share code, notes, and snippets.

@plowsec
Last active May 22, 2024 07:46
Show Gist options
  • Select an option

  • Save plowsec/b492477c7e866d66433e01a5d99cd53d to your computer and use it in GitHub Desktop.

Select an option

Save plowsec/b492477c7e866d66433e01a5d99cd53d to your computer and use it in GitHub Desktop.
Fix Windows
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force | Out-Null; New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -Value 1 -PropertyType DWORD -Force
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -Type DWord -Value 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment