Skip to content

Instantly share code, notes, and snippets.

@jmconway
Created May 10, 2021 15:31
Show Gist options
  • Save jmconway/37d82817c38bfa3bbc5f18ca94bd666c to your computer and use it in GitHub Desktop.
Save jmconway/37d82817c38bfa3bbc5f18ca94bd666c to your computer and use it in GitHub Desktop.
Quick PowerShell function that I use in some scripts to overwrite tattooed registry settings from a prior WSUS implementation.
function Clear-WSUSConfig {
Stop-Service wuauserv -force
Set-ItemProperty -Path HKLM:SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU -Name UseWUServer -Value 0
Start-Service wuauserv
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment