Created
June 18, 2020 14:05
-
-
Save Torxsmind/6dc8e87b799cdc4af0e31536676f0c65 to your computer and use it in GitHub Desktop.
Override GPO to use WSUS
This file contains hidden or 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
| Remove-Item ` | |
| -Path HKLM:SoftwarePoliciesMicrosoftWindowsWindowsUpdate ` | |
| -Force ` | |
| -Recurse ` | |
| -ErrorAction SilentlyContinue; | |
| Stop-Service -Name wuauserv; | |
| Start-Service -Name wuauserv; | |
| (New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment