Windows Update Stuck and Not Processing Updates

From DFWLPiki
Jump to: navigation, search

Windows Update often needs a swift kick in the pants. Paste this script into an admin-command promt, and it will reset the software cache folders, verify the updates source.

net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
cd c:\windows\
ren SoftwareDistribution SoftwareDistribution.old
cd c:\windows\system32
ren catroot2 Catroot2.old
wuauclt.exe /resetauthorization /detectnow
REG QUERY "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate"
sc config wuauserv start=auto
@RD /S /Q  c:\windows\SoftwareDistribution.old
@RD /S /Q  c:\windows\system32\Catroot2.old

Occasionally you get a server that refuses to stop the wuauserv process, so it needs a reboot with the service disabled, and try the above again

sc config wuauserv start=disabled
shutdown -r -f -t 00