Sitemap

Script to clean Windows Update cache

alex_ber
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.

--

--

alex_ber
alex_ber

Written by alex_ber

Senior Software Engineer at Pursway

No responses yet