Created
May 10, 2021 15:31
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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