

If exist "%SYSTEMROOT%\WindowsUpdate.log" (Īttrib -r -s -h /s /d "%SYSTEMROOT%\WindowsUpdate.log" If exist "%SYSTEMROOT%\" del /s /q /f "%SYSTEMROOT%\" Ren "%SYSTEMROOT%\system32\Catroot2" Catroot2.bak If exist "%SYSTEMROOT%\system32\Catroot2" (Īttrib -r -s -h /s /d "%SYSTEMROOT%\system32\Catroot2" If exist "%SYSTEMROOT%\system32\Catroot2.bak" rmdir /s /q "%SYSTEMROOT%\system32\Catroot2.bak"

Ren "%SYSTEMROOT%\SoftwareDistribution" SoftwareDistribution.bak If exist "%SYSTEMROOT%\SoftwareDistribution" (Īttrib -r -s -h /s /d "%SYSTEMROOT%\SoftwareDistribution" If exist "%SYSTEMROOT%\SoftwareDistribution.bak" rmdir /s /q "%SYSTEMROOT%\SoftwareDistribution.bak" Takeown /f "%SYSTEMROOT%\winsxs\pending.xml"Īttrib -r -s -h /s /d "%SYSTEMROOT%\winsxs\pending.xml" If exist "%SYSTEMROOT%\winsxs\pending.xml" ( If exist "%SYSTEMROOT%\winsxs\" del /s /q /f "%SYSTEMROOT%\winsxs\"

Sc query cryptsvc | findstr /I /C:"STOPPED"Įcho Failed to reset Windows Update due to cryptsvc service failing to stop.ĭel /s /q /f "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"ĭel /s /q /f "%ALLUSERSPROFILE%\Microsoft\Network\Downloader\qmgr*.dat" Sc query appidsvc | findstr /I /C:"STOPPED"Įcho Failed to reset Windows Update due to appidsvc service failing to stop.Įcho Checking the cryptsvc service status. Sc query wuauserv | findstr /I /C:"STOPPED"Įcho Failed to reset Windows Update due to wuauserv service failing to stop.Įcho Checking the appidsvc service status. In any case, if you cannot download/run the script, copy the following code in notepad and save it by "WUReset.bat" (with quotes) and then run it offĮcho Simple script to reset windows update-Credits to shawn Brink for the commandsĮcho Failed to reset Windows Update due to bits service failing to stop.Įcho Checking the wuauserv service status. Download Windows update Reset script for Windows 7 and 8
