Skip to content

Instantly share code, notes, and snippets.

@jetersen
Created September 27, 2022 13:55
Show Gist options
  • Save jetersen/a627f0c7ee2a3ac62d5314329cfe32a9 to your computer and use it in GitHub Desktop.
Save jetersen/a627f0c7ee2a3ac62d5314329cfe32a9 to your computer and use it in GitHub Desktop.
Clear Windows Update Cache
$service = Get-service "windows update"
$service | Stop-Service
Remove-Item -Recurse -Force "C:\Windows\SoftwareDistribution\Download"
$service | Start-Service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment