Repair Windows Update Service

Products

Windows 2012 R2 Std, Windows 2016 Std, Windows 2016 Datacenter, Windows 2019 Std, Windows 2019 Datacenter

Description

Windows updates are hanging on Downloading updates 0% for over 1 hour.

Solution

1 Perform a Clean Reboot

2 Start CMD as an Administrator

3 Run the following commands from CMD as an Administrator

Stop the Windows Update Service, Run this twice if the first attempt to stop the service fails
net stop wuauserv
Stop the Cryptographic Services service
net stop cryptSvc
Stop the Background Intelligent Transfer service
net stop bits
Stop the Windows Installer Service
net stop msiserver
Delete all qmgr*.dat files from ALLUSERSPROFILE
del /f /q “%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat”
Delete all files from %SystemRoot%\SoftwareDistribution
del /f /s /q %SystemRoot%\SoftwareDistribution\*.*
Delete all files from %SystemRoot%\system32\catroot2
del /f /s /q %SystemRoot%\system32\catroot2\*.*
Delete the WindowsUpdate.log file
del /f /q %SystemRoot%\WindowsUpdate.log
Start the Windows Update Service
net start wuauserv
Start the Cryptographic Services service
net start cryptSvc
Start the Background Intelligent Transfer service
net start bits
Start the Windows Installer Service
net start msiserver

4) Retry automatic updates, this will clear the Windows Update cache and the automatic updates should work again through the native interface.