疑難排解 Windows Update 錯誤0x80244007

適用於:✔️ Windows VM

總結

當 Windows 用戶端或虛擬機器 (VM) 嘗試從 Windows Server Update Services (WSUS) 或 Configuration Manager 端點掃描和下載更新時,通常會發生 Windows Update 錯誤 0x80244007。 此錯誤通常與伺服器在更新過程中傳回的簡單物件存取協定 (SOAP) 錯誤相關聯。 此錯誤表示影響用戶端與更新服務之間通訊或設定的問題。

Windows 更新錯誤 0x80244007

先決條件

針對執行 Windows 的 Microsoft Azure VM,請務必備份 OS 磁碟。 如需詳細資訊,請參閱 關於 Azure 虛擬機器還原

如何找出問題

症狀 1

當 WSUS 用戶端電腦掃描 WSUS 伺服器上的更新時,下列錯誤專案會記錄在用戶端電腦上的 WindowsUpdate.log 檔案中:

WS error: <detail><ErrorCode>InvalidParameters</ErrorCode><Message>parameters.InstalledNonLeafUpdateIDs</Message><ID>GUID</ID><Method> http://www.microsoft.com/SoftwareDistribution/Server/ClientWebService/SyncUpdates"</Method></detail>"
*FAILED* [80244007] SyncUpdates_WithRecovery failed

當要同步處理的更新數目超過WSUS用戶端可以傳遞至 SyncUpdates的已安裝必要條件數目上限時,就會發生此問題。

症狀 2

更新不會安裝,而且掃描本身會因為影響 OtherCachedUpdateIDs 參數的問題而失敗。 您可能會在 C:\Windows\Logs\WindowsUpdate.log 中看到類似下列範例的記錄專案:

2015-10-30 17:12:53:980 880 1160 IdleTmr WU operation (CAgentProtocolTalker::SyncUpdates_WithRecover) started; operation # 584; does use network; is at background priority
2015-10-30 17:12:54:073 880 1160 WS WARNING: Nws Failure: errorCode=0x803d0013
2015-10-30 17:12:54:073 880 1160 WS WARNING: The body of the received message contained a fault.
2015-10-30 17:12:54:073 880 1160 WS WARNING: Soap fault info:
2015-10-30 17:12:54:073 880 1160 WS WARNING: reason: Fault occurred
2015-10-30 17:12:54:073 880 1160 WS WARNING: code: Client
2015-10-30 17:12:54:073 880 1160 WS WARNING: detail: <detail><ErrorCode>InvalidParameters</ErrorCode><Message>parameters.OtherCachedUpdateIDs</Message><ID>8889e6f6-cc94-4b2b-9d0c-9818649a5dfc</ID><Method>"http://www.microsoft.com/SoftwareDistribution/Server/ClientWebService/SyncUpdates"</Method></detail>
2015-10-30 17:12:54:073 880 1160 WS WARNING: Soap fault detail: errorCode='InvalidParameters', message='parameters.OtherCachedUpdateIDs', id='8889e6f6-cc94-4b2b-9d0c-9818649a5dfc', method='"http://www.microsoft.com/SoftwareDistribution/Server/ClientWebService/SyncUpdates"'
2015-10-30 17:12:54:073 880 1160 WS FATAL: OnCallFailure failed with hr=0X80244007
2015-10-30 17:12:54:073 880 1160 PT WARNING: PTError: 0x80244007
2015-10-30 17:12:54:073 880 1160 PT WARNING: SyncUpdates_WithRecovery failed.: 0x80244007
2015-10-30 17:12:54:073 880 1160 IdleTmr WU operation (CAgentProtocolTalker::SyncUpdates_WithRecover, operation # 584) stopped; does use network; is at background priority

症狀3

檢查更新失敗,並產生內部伺服器 error code: 0x80244007 以及 error code: 0x803d0013。 這些錯誤碼是由於遺失用於用戶端驗證和授權的 WSUS 客戶端條目所造成。 日誌顯示 Windows Update

2017-05-04 18:00:07:807 1676 117c PT +++++++++++ PT : Synchronizing server updates +++++++++++
2017-05-04 18:00:07:807 1676 117c PT + ServiceId = {3DA21691-E39D-4DA6-8A4B-B43877BCB1B7}, Server URL =  https://<wsusserver>/ClientWebService/client.asmx
2017-05-04 18:00:07:807 1676 117c EP Got WSUS SimpleTargeting URL: " https://<wsusserver> "
2017-05-04 18:00:07:807 1676 117c IdleTmr CIdleTimerHelper starting a WU operation (CAuthorizationCookieWrapper::InitializeSimpleTargetingCookie; does require network, is at background priority, will stop idle timer) from unspecified call
2017-05-04 18:00:07:807 1676 117c PT Initializing simple targeting cookie, clientId = , target group = special-01, DNS name = byolaq.bayer.cnb
2017-05-04 18:00:07:807 1676 117c PT Server URL =  https://<wsusserver>/SimpleAuthWebService/SimpleAuth.asmx
2017-05-04 18:00:07:807 1676 117c WS Service URL='https://<wsusserver>/SimpleAuthWebService/SimpleAuth.asmx'.
2017-05-04 18:00:07:807 1676 117c WS Proxy List: '(null)', Bypass List: '(null)'.
2017-05-04 18:00:07:807 1676 117c WS Current service auth scheme='None'.
2017-05-04 18:00:07:807 1676 117c WS No proxy settings for this web service call.
2017-05-04 18:00:07:854 1676 1184 WS The SOAP message content is not xpress encoded.
2017-05-04 18:00:07:854 1676 117c WS WARNING: Nws Failure: errorCode=0x803d0013
2017-05-04 18:00:07:854 1676 117c WS WARNING: The body of the received message contained a fault .
2017-05-04 18:00:07:854 1676 117c WS WARNING: Soap fault info:
2017-05-04 18:00:07:854 1676 117c WS WARNING: reason: Fault occurred
2017-05-04 18:00:07:854 1676 117c WS WARNING: code: Server
2017-05-04 18:00:07:854 1676 117c WS WARNING: detail: <detail><ErrorCode> InternalServerError </ErrorCode><Message></Message><ID>9f8e13ac-3a64-41c6-a40b-cad7913fc1bb</ID><Method>"  http://www.microsoft.com/SoftwareDistribution/Server/SimpleAuthWebService/GetAuthorizationCookie "</Method></detail>
2017-05-04 18:00:07:854 1676 117c WS FATAL: OnCallFailure failed with hr= 0X80244007
2017-05-04 18:00:07:854 1676 117c WS FATAL: NwsCallWithRetries<Functor>( Functor(_clientId, _targetGroupName, _dnsName, &_result)) failed with hr=0x80244007

原因

此錯誤主要是由伺服器在更新程序期間傳回的 SOAP 錯誤所造成。 此問題可能是由於下列條件而發生:

  • 用戶端超出了 WSUS 用戶端可以傳遞至 SyncUpdates 方法的已安裝必要條件數目上限。
  • 在更新掃描期間影響 OtherCachedUpdateIDs 的問題。
  • 用於驗證和授權用戶端存取的遺失 WSUS 用戶端記錄。

解決或疑難排解步驟

決議 1:增加 maxInstalledPrerequisites 在 WSUS 設定中

編輯 web.config WSUS 伺服器上的檔案。 該檔案位於 %programfiles%\Update Services\WebServices\ClientWebService\web.config。將 maxInstalledPrerequisites 的值從 400 變更為 800

如需詳細資訊,請參閱 WSUS 用戶端掃描更新時的錯誤80244007

決議 2:拒絕 WSUS 中已被取代的更新

拒絕 WSUS 伺服器上所有被取代的更新。 如需執行此程式的詳細指示,請參閱 拒絕 WSUS 中被取代更新的 PowerShell 腳本

如需詳細資訊,請參閱 WSUS 和 Configuration Manager SUP 維護的完整指南

解決方案 2.1:在 WSUS 設定中增加 maxCachedUpdate

web.config的 WSUS 伺服器上編輯檔案。增加 maxCachedUpdate 值。

解決方案 3:重設 WSUS 用戶端

在受影響的 WSUS 用戶端上開啟提高許可權的命令提示字元視窗,然後依指定的順序執行下列命令:

  • net stop wuauserv
  • reg Delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v PingID /f
  • reg Delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v AccountDomainSid /f
  • reg Delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientId /f
  • reg Delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientIDValidation /f
  • net start wuauserv
  • wuauclt.exe /resetauthorization /detectnow

您可能會收到類似下列訊息的訊息:

錯誤:系統找不到指定的登錄機碼或值

這些訊息是預期的,不需要緩解。

執行所有命令後,等待 10-15 分鐘,前往 控制台所有>控制台項目>Windows 更新,檢查更新並監控狀態。