Skip to content

Instantly share code, notes, and snippets.

@Torxsmind
Created December 9, 2019 16:06
Show Gist options
  • Select an option

  • Save Torxsmind/54b1a391f06b7c3b48d934365c448bc0 to your computer and use it in GitHub Desktop.

Select an option

Save Torxsmind/54b1a391f06b7c3b48d934365c448bc0 to your computer and use it in GitHub Desktop.
Stop-Service -Name wuauserv
Remove-Item HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate -Recurse
Start-Service -name wuauserv
Get-WindowsCapability -Online |
? {$_.Name -like "*RSAT*" -and $_.State -eq "NotPresent"} |
Add-WindowsCapability -Online
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment