Created
September 27, 2022 13:55
-
-
Save jetersen/a627f0c7ee2a3ac62d5314329cfe32a9 to your computer and use it in GitHub Desktop.
Clear Windows Update Cache
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
$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