Skip to content

Instantly share code, notes, and snippets.

@Torxsmind
Created June 18, 2020 14:05
Show Gist options
  • Select an option

  • Save Torxsmind/6dc8e87b799cdc4af0e31536676f0c65 to your computer and use it in GitHub Desktop.

Select an option

Save Torxsmind/6dc8e87b799cdc4af0e31536676f0c65 to your computer and use it in GitHub Desktop.
Override GPO to use WSUS
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