Windows Update - 其他資源

適用於:Windows Server 2019、Windows Server 2016、Windows 11、Windows 10

注意事項

Windows Server 2016 支援 Windows 10 版本 1607 中提供的原則。 Windows Server 2019 支援 Windows 10 版本 1809 中提供的原則。

下列資源提供有關使用 Windows Update 的其他資訊。

WSUS 疑難解答

如何? 重設 Windows Update元件?

如果其他所有命令都失敗,請嘗試從提升許可權的命令提示字元執行下列命令,以重設 Windows Update 代理程式:

net stop wuauserv
rd /s /q %systemroot%\SoftwareDistribution
net start wuauserv

手動重設 Windows Update元件

  1. 開啟 Windows 命令提示字元。 若要開啟命令提示字元,請選取 [開始>執行]。 複製並貼上 (或輸入) cmd ,然後按 Enter 鍵。

  2. 停止 BITS 服務、Windows Update 服務和密碼編譯服務。 在命令提示字元中輸入下列命令。 輸入每個命令之後,按 Enter 鍵。

    net stop bits
    net stop wuauserv
    net stop cryptsvc   
    
  3. 刪除 qmgr*.dat 檔案。 在命令提示字元中輸入下列命令,然後按 Enter:

    Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
    
  4. 如果這是您第一次嘗試使用本文中的步驟來解決 Windows Update 問題,請移至步驟 5,而不執行步驟 4 中的步驟。 步驟 4 中的步驟應該只在進行疑難解答時執行,如果您在遵循步驟 4 之後的所有步驟之後無法解決 Windows Update 問題。 步驟 4 中的步驟也會由上述修正解決方案的「積極」模式執行。

    1. 將下列資料夾重新命名為 *.BAK

      • %Systemroot%\SoftwareDistribution\DataStore
      • %Systemroot%\SoftwareDistribution\Download
      • %Systemroot%\System32\catroot2

      若要這樣做,請在命令提示字元中輸入下列命令。 輸入每個命令之後,按 Enter 鍵。

      Ren %Systemroot%\SoftwareDistribution\DataStore DataStore.bak
      Ren %Systemroot%\SoftwareDistribution\Download Download.bak
      Ren %Systemroot%\System32\catroot2 catroot2.bak
      

      重要事項

      下列使用 sc.exe 的重設步驟會覆寫您在 BITS 和 Windows Update 服務上現有的安全性 ACL,並將它們設定為預設值。 除非重設 Windows Update元件的其他步驟尚未解決問題,否則請略過此步驟。

    2. 將 BITS 服務和 Windows Update 服務重設為預設安全描述符。 若要這樣做,請在命令提示字元中輸入下列命令。 輸入每個命令之後,按 Enter 鍵。

      sc.exe sdset bits D:(A;CI;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)
      sc.exe sdset wuauserv D:(A;;CCLCSWRPLORC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)
      
  5. 在命令提示字元中輸入下列命令,然後按 Enter:

    cd /d %windir%\system32
    
  6. 重新註冊 BITS 檔案和 Windows Update 檔。 若要這樣做,請在命令提示字元中輸入下列命令。 輸入每個命令之後,按 Enter 鍵。

    regsvr32.exe atl.dll
    regsvr32.exe urlmon.dll
    regsvr32.exe mshtml.dll
    regsvr32.exe shdocvw.dll
    regsvr32.exe browseui.dll
    regsvr32.exe jscript.dll
    regsvr32.exe vbscript.dll
    regsvr32.exe scrrun.dll
    regsvr32.exe msxml.dll
    regsvr32.exe msxml3.dll
    regsvr32.exe msxml6.dll
    regsvr32.exe actxprxy.dll
    regsvr32.exe softpub.dll
    regsvr32.exe wintrust.dll
    regsvr32.exe dssenh.dll
    regsvr32.exe rsaenh.dll
    regsvr32.exe gpkcsp.dll
    regsvr32.exe sccbase.dll
    regsvr32.exe slbcsp.dll
    regsvr32.exe cryptdlg.dll
    regsvr32.exe oleaut32.dll
    regsvr32.exe ole32.dll
    regsvr32.exe shell32.dll
    regsvr32.exe initpki.dll
    regsvr32.exe wuapi.dll
    regsvr32.exe wuaueng.dll
    regsvr32.exe wuaueng1.dll
    regsvr32.exe wucltui.dll
    regsvr32.exe wups.dll
    regsvr32.exe wups2.dll
    regsvr32.exe wuweb.dll
    regsvr32.exe qmgr.dll
    regsvr32.exe qmgrprxy.dll
    regsvr32.exe wucltux.dll
    regsvr32.exe muweb.dll
    regsvr32.exe wuwebv.dll
    
  7. 重設 Winsock。 在命令提示字元中輸入下列命令,然後按 Enter:

    netsh winsock reset
    
  8. 如果您執行的是 Windows XP 或 Windows Server 2003,則必須設定 Proxy 設定。 在命令提示字元中輸入下列命令,然後按 Enter:

    proxycfg.exe -d
    
  9. 重新啟動 BITS 服務、Windows Update 服務和密碼編譯服務。 在命令提示字元中輸入下列命令。 輸入每個命令之後,按 Enter 鍵。

    net start bits
    net start wuauserv   
    net start cryptsvc 
    
  10. 如果您執行的是 Windows Vista 或 Windows Server 2008,請清除 BITS 佇列。 在命令提示字元中輸入下列命令,然後按 Enter:

    bitsadmin.exe /reset /allusers
    

資料收集

若您需要 Microsoft 支援,建議您按照使用 TSS 收集部署相關問題的資訊所述步驟來收集資訊。