起因:vm虛擬化下所有的服務器都是使用模板來新建虛擬機的,所以使得部分客戶端SID相同了。
現象:在wsus 3.0 sp1控制檯上,無法看到所有服務器客戶端。
解決方案:均在客戶端上操作,
net stop wuauserv
刪掉 HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate 下面 SusClientId 和 SusClientIdValidation 鍵
刪掉Windows目錄下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.