2017-08-29 19 views
0

有在這裏重新更新整齊指南:https://support.microsoft.com/en-us/help/971058/how-do-i-reset-windows-update-components重置Windows更新

我試圖創建一個腳本來自動完成這個過程,但現在檢查更新時,沒有更新的發現。檢查更新是否完成(不是卡住了),但只發現2個可選更新。

我錯過了什麼?

@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 
+2

你不用重置已安裝的更新。它只是重置Windows Update組件來修復可能發生的錯誤。簡而言之,你已經安裝了所有可用的更新,因此它找不到任何更新。 –

回答

0

我不相信你錯過了什麼。它看起來像你做了網站所說的一切。您的計算機可能只有2個可選的更新可用,這就是爲什麼它可以這麼說。我會檢查控制面板,看看是否有更多的可用。如果沒有比你做得對。要檢查您是否會轉到(控制面板>所有控制面板項目> Windows Update),請點擊檢查更新。