解決SID相同的客戶端在WSUS服務器只能顯示一臺的故障

解決SID相同的客戶端在WSUS服務器只能顯示一臺的故障


起因:sysprep時應該是選擇了重新生成sid,但在硬盤對拷過程中,換盤重啓時不慎使鏡像系統啓動過了,所以使得部分客戶端SID相同了。

現像:其它到現在還沒有發現什麼,就是在wsus 3.0 sp1控制檯上,看到客戶端,有時來臺A,有時來臺B,有A沒B,有B沒A,只能顯示一臺。

解決方案:均在客戶端上操作,

net stop wuauserv

刪掉 HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate 下面 SusClientId 和 SusClientIdValidation 鍵

刪掉 %windir%下面的SoftwareDistribution目錄

net start wuauserv

運行 wuauclt.exe /Detectnow /Resetauthorization 命令

飛快,在控制檯就可以看到新加入的客戶端了!

 

在網上看到兩個不錯的代碼,用於清除WSUS客戶端相同SID的.

 

程序代碼程序代碼

Script Code
============================================

@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 "HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate" /v AccountDomainSid /f
REG Delete "HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate" /v PingID /f
REG Delete "HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate" /v SusClientId /f
net start wuauserv
wuauclt /resetauthorization /detectnow
Pause
============================================

SUS client ID will be generated at next detection.


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章