Posted by: Niko | October 26, 2006

WSUS Client troubleshooting

I have noticed that sometimes Windows Update Client doesn’t report computer status to the WSUS service. Updates are downloaded and installed but the status of the computer doesn’t update to server. I believe the client configuration or other data gets somehow corrupted or invalid. I found following solution to this problem:

1. Stop Automatic Updates service with net stop “automatic updates” -command.

2. Delete directory %systemroot%\system32\SoftwareDistribution. If you cannot delete the files, the Automatic Update service has probably restarted automatically. To avoid automatic restart of the service you have to open Services Management Console and set Startup type to disabled.

3. Start the Automatic Updates services with net start “automatic updates” -command. If you disabled the Automatic Updates service in Service Management Console, remember to set the Startup type back to Automatic before starting the service.

4. Run wuauclt /resetauthorization /detectnow

5. Wait some time and the computer should appear as new computer in the WSUS.

6. Remove the duplicate computer (which didn’t report it’s status) from WSUS.

UPDATE

Reporting problem on some clients were actually a client identification problem. Computers created from image had same SusClientId in the registry, so they were all updating the same WSUS computer record. I created a script which cleans up the client configurations and solves the problem:

@ECHO OFF
ECHO ******************************************
ECHO ***
ECHO *** WSUS Client Claner
ECHO ***
ECHO ******************************************

ECHO *** Stopping Automatic Updates service
net stop “automatic updates”

ECHO *** Deleting %systemroot%\SoftwareDistribution
rmdir /S /Q %systemroot%\SoftwareDistribution

ECHO *** Cleaning WSUS Client registry – AccountDomainSid
REG DELETE “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate” /v AccountDomainSid /f

ECHO *** Cleaning WSUS Client registry – PingID
REG DELETE “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate” /v PingID /f

ECHO *** Cleaning WSUS Client registry – SusClientId
REG DELETE “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate” /v SusClientId /f

ECHO *** Starting Automatic Updates service
net start “automatic updates”

ECHO *** Resetting Windows Update client
wuauclt /resetauthorization /detectnow

ECHO *** Cleaning done. See possible error on %systemroot%\WindowsUpdate.log

Advertisements

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

Categories

%d bloggers like this: