Reset Windows Update with Script

Reset Windows Update with Script

You are here:
Estimated reading time: 1 min

This article will cover how to use the Windows Update Reset script to fix any Windows Update error encountered.

Problem

Windows Update is not able to update the workstation/server

Error

Windows Update has encountered an unknown error

Resolution

The batch script will automatically reset all services associated with Windows Update

SoftwareDistribution folder, BTS service, Cryptographic Services, etc.

Copy the following script into Notepad and save as WUReset.bat

Run the script as an administrator. 

@ECHO OFF
echo Reset Windows Update
echo.
PAUSE
echo.
attrib -h -r -s %windir%system32catroot2
attrib -h -r -s %windir%system32catroot2*.*
net stop wuauserv
net stop CryptSvc
net stop BITS
ren %windir%system32catroot2 catroot2.old
ren %windir%SoftwareDistribution sold.old
ren "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader" downloader.old
net Start BITS
net start CryptSvc
net start wuauserv
echo.
echo Task completed successfully...
echo.
PAUSE

After running this script, restart your computer and run Windows Update again. 

Still Need Help? Open a Ticket

Let one of our experienced engineer resolve the issue

Was this article helpful?
Dislike 0