Difference between revisions of "Windows Update Stuck and Not Processing Updates"

From DFWLPiki
Jump to: navigation, search
(Created page with "Category:Windows 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...")
 
 
Line 16: Line 16:
 
@RD /S /Q  c:\windows\SoftwareDistribution.old
 
@RD /S /Q  c:\windows\SoftwareDistribution.old
 
@RD /S /Q  c:\windows\system32\Catroot2.old
 
@RD /S /Q  c:\windows\system32\Catroot2.old
 +
</nowiki>
 +
 +
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
 +
 +
<nowiki>
 +
sc config wuauserv start=disabled
 +
shutdown -r -f -t 00
 
</nowiki>
 
</nowiki>

Latest revision as of 14:49, 23 February 2020

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