Script to clean Windows Update cache
Apr 23, 2025
Open cmd as Administrator. Type:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
rd /s /q "C:\Windows\System32\catroot2"
rd /s /q "C:\Windows\SoftwareDistribution"
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
Hide-WindowsUpdate -Title "Intel Corporation - Display - 31.0.101.5388" -Verbose -Confirm:$false
Get-WindowsUpdate -IsHidden -Verbose
Note: if moving/deleting of C:\Windows\SoftwareDistribution or C:\Windows\System32\catroot2 fails, this means that Windows started one one the services above. Just rerun the sequence from the very beginning.