虚拟化模板新建虚拟机后 wsus控制台无法看到所有客户端计算机

起因: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.


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