解决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.