这里有一个关于重置更新的整洁指南:https://support.microsoft.com/en-us/help/971058/how-do-i-reset-windows-update-components
我曾经尝试创建一个脚本来自动化这个过程,但是现在在检查更新时,没有找到任何更新。检查更新完成(而不是被卡住了),但只找到两个可选的更新。
我遗漏了什么?
@echo off
CHOICE /C Y /M "Press Y and Enter to reset Windows Updates or close this command prompt."
pause
@echo on
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak
sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
cd /d %windir%\system32
@echo off
regsvr32.exe /s atl.dll
regsvr32.exe /s urlmon.dll
regsvr32.exe /s mshtml.dll
regsvr32.exe /s shdocvw.dll
regsvr32.exe /s browseui.dll
regsvr32.exe /s jscript.dll
regsvr32.exe /s vbscript.dll
regsvr32.exe /s scrrun.dll
regsvr32.exe /s msxml.dll
regsvr32.exe /s msxml3.dll
regsvr32.exe /s msxml6.dll
regsvr32.exe /s actxprxy.dll
regsvr32.exe /s softpub.dll
regsvr32.exe /s wintrust.dll
regsvr32.exe /s dssenh.dll
regsvr32.exe /s rsaenh.dll
regsvr32.exe /s gpkcsp.dll
regsvr32.exe /s sccbase.dll
regsvr32.exe /s slbcsp.dll
regsvr32.exe /s cryptdlg.dll
regsvr32.exe /s oleaut32.dll
regsvr32.exe /s ole32.dll
regsvr32.exe /s shell32.dll
regsvr32.exe /s initpki.dll
regsvr32.exe /s wuapi.dll
regsvr32.exe /s wuaueng.dll
regsvr32.exe /s wuaueng1.dll
regsvr32.exe /s wucltui.dll
regsvr32.exe /s wups.dll
regsvr32.exe /s wups2.dll
regsvr32.exe /s wuweb.dll
regsvr32.exe /s qmgr.dll
regsvr32.exe /s qmgrprxy.dll
regsvr32.exe /s wucltux.dll
regsvr32.exe /s muweb.dll
regsvr32.exe /s wuwebv.dll
@echo on
netsh winsock reset
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
@echo off
CHOICE /C Y /M "Press Y and Enter to restart your computer or close the command prompt (require manual restart)."
pause
shutdown.exe /r /t 00发布于 2017-11-28 02:55:56
我不相信你错过了什么。看起来你做了网站上说的每件事。可能您的计算机只有两个可选的更新可用,这就是为什么它可以这么说。我会检查控制面板,看看是否有更多可用。如果没有你做的对的话。若要检查是否会转到(“控制面板”>“所有控制面板项”>“Windows”),请单击“检查更新”。
https://stackoverflow.com/questions/45934703
复制相似问题