2014年3月30日 星期日

[系統管理]Windows Update 錯誤訊息80072EE2

因公司三台Windows主機原本是從Windows Update上下載更新,但最近更改了內部WSUS後就出現80072EE2的錯誤訊息,如下圖


猜測可能原本在微軟的Windows Update上看到的Patch更新,但尚未下載到本機端,就改成內部的WSUS Server,而內部的WSUS Server並沒有這隻Patch,所以導致更新失敗。

解決方式如下:
  1. Stop BITS(Background Intelligent Transfer Service) 及 wuauserv(Windows Update)

  2. Remove OR Rename Software Distr (C:\Windows\SoftwareDistribution)
  3. Remove SUS ID
    REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f

  4. Flush DNS/Register
  5. Start BITS(Background Intelligent Transfer Service) 及 wuauserv(Windows Update)
  6. wuauclt /resetauthorization /detectnow

批次檔

@echo off 
Echo Save the batch file "AU_Clean_SID.cmd". This batch file will do the following: 
Echo 1.    Stops the wuauserv service 
Echo 2.    Deletes the AccountDomainSid registry key (if it exists) 
Echo 3.    Deletes the PingID registry key (if it exists) 
Echo 4.    Deletes the SusClientId registry key (if it exists) 
Echo 5.    Restarts the wuauserv service 
Echo 6.    Resets the Authorization Cookie 
Pause 
@echo on 
net stop wuauserv 
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v AccountDomainSid /f 
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v PingID /f 
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f
net start wuauserv 
wuauclt /resetauthorization /detectnow
Pause 

沒有留言:

張貼留言

如您對本文有任何建議或意見,歡迎您留下您寶貴的意見!