2015年5月15日 星期五

Client端無法加入至WSUS管理介面

Client端無法加入至WSUS管理介面

轉載至 http://masterman.pixnet.net/blog/post/29161736-%E3%80%90wsus%E3%80%91client%E7%AB%AF%E7%84%A1%E6%B3%95%E5%8A%A0%E5%85%A5%E8%87%B3wsus%E7%AE%A1%E7%90%86%E4%BB%8B%E9%9D%A2

Q.WSUS中發現電腦清單中無法順利加入某台主機。 
-衍伸問題:發現兩臺主機互相替換,主機ó主機B,但無法同時顯示。 

SID重覆或WSUS Client ID重覆。

1.SID重覆:使用New SID處理即可。

2.Client ID重覆:
當主機連線至WSUS後,由WSUS派發一組ClientID儲存至該主機登錄檔中。
當作業系統是利用複製的方式產生時,將導致ClientID重覆造成此問題。

1.尋找WSUS LOG檔,尋找相關的Client ID記錄。(或者可於登錄檔中查詢)
參考網站:http://support.microsoft.com/kb/902093/zh-tw#top
本文將告訴您,如何讀取 Windowsupdate.log 檔案。 如果要檢視記錄檔,請依照下列步驟執行:
  1. 按一下 [開始],然後按一下 [執行]
  2.  [開啟方塊中輸入windowsupdate.log,],,然後再按一下 [確定]]
2.檢查後,發現主機ABClient ID重覆。
主機AclientId = 7c8fe9ad-603b-407c-b2be-e0f71157aa75,
主機BclientId = 7c8fe9ad-603b-407c-b2be-e0f71157aa75

3.於主機AB使用以下語法進行Client ID重置。

將以下語法儲存成批次檔執行即可:
@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
Echo 7.    More information on http://msmvps.com/Athif
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

3.檢查主機BClient ID,已完成重置。(可於登錄檔中觀看)
主機BclientId = 959d29cd-40db-4811-9222-09d7d40f6439,



4.兩臺主機皆正常加入WSUS電腦清單中。



Delete Duplicate SUS Client IDs

http://gallery.technet.microsoft.com/scriptcenter/9faf2085-f8ca-4799-8d45-b0e654da71f7

Deletes any duplicate SUS client IDs found on a computer. These IDs are often found on computers where the operating system was installed using an image-based setup.


描述:
Submitted By: Mohammed Athif Khaleel
Deletes any duplicate SUS client IDs found on a computer. These IDs are often found on computers where the operating system was installed using an image-based setup.

Visual Basic
@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 
Echo 6.    More information on http://msmvps.com/Athif 
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



沒有留言:

張貼留言