@echo off :: This script resets Windows Update components by clearing the cache :: Run as Administrator for it to work correctly echo Stopping Windows Update services... net stop wuauserv net stop cryptSvc net stop bits net stop msiserver echo Deleting temporary update files (SoftwareDistribution and Catroot2)... rd /s /q %windir%\SoftwareDistribution rd /s /q %windir%\system32\catroot2 echo Restarting services... net start wuauserv net start cryptSvc net start bits net start msiserver echo. echo Process complete! Please restart your computer and try updating again. pause