Server not showing up in WSUS due to cloned client ID cookie and the fix

When using clone technology you have to use sysprep or an equivalent technique to prevent nasty problems with duplicate (unique) ID’s. Unfortunately the WSUS client is usually forgotten by these tools and by sysadmins.

You can recognize this problem by checking your WSUS server of course and by identifying the following log strings in your WindowsUpdate log (C:\Windows\WindowsUpdate.log):

2011-01-20 13:51:48:361 1228 3c64 PT WARNING: Cached cookie has expired or new PID is available
2011-01-20 13:51:48:377 1228 3c64 PT Initializing simple targeting cookie, clientId = f0ce4944-xxxx-4487-xxxx-ed453c3300ae, target group = [your group], DNS name = [your client DNS name]

To re-register your client to the WSUS server with a unique ID, use the following commands:

REGSVR32 WUPS2.DLL /S
REGSVR32 MSXML3.DLL /S
REGSVR32 WUPS.DLL /S
REGSVR32 WUPS2.DLL /S
REGSVR32 WUAUENG.DLL /S
REGSVR32 WUAUENG1.DLL /S
REGSVR32 WUAPI.DLL /S
REGSVR32 MUCLTUI.DLL /S
REGSVR32 WUCLTUI.DLL /S
REGSVR32 WUWEB.DLL /S
REGSVR32 MUWEB.DLL /S
REGSVR32 QMGR.DLL /S
REGSVR32 QMGRPRXY.DLL /S
REGSVR32 JSCRIPT.DLL /S
net stop wuauserv
net stop bits
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
rmdir /s /q c:\Windows\softwaredistribution
mkdir c:\Windows\SoftwareDistribution
net start bits
net start wuauserv
wuauclt /resetauthorization /detectnow

Check the permission on the C:\Windows\SoftwareDistribution folder. By default these should be inherited by the C:\Windows folder. If those settings are not OK you probably have more problems to deal with.

Advertisements

About Yuri de Jager
Technology Addict

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: