Cloned PCs Disappear in WSUS

Just set up WSUS in an environment with a few cloned PCs. One PC would show up in WSUS, then it would disappear when a cloned PC showed up.

The issue is a duplicate registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\SusClientID

A quick search found multiple scripts to fix the issue. I’m going to use this one from Microsoft Support in Taiwan:

@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 at https://www.mcbsys.com/blog/2017/03/cloned-pcs-disappear-in-wsus/ and
Echo       https://blogs.technet.microsoft.com/csstwplatform/2012/05/27/wsus-script-to-delete-duplicate-sid-created-by-disk-imaging-disk-cloning/
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

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.