Thread: WSUS and WHS
View Single Post
Old 24-04-2009, 07:51   #7
southwell
Inactive
 
Join Date: Feb 2005
Location: Basingstoke
Age: 41
Services: Sky HD Virgin Phone + 50mb
Posts: 918
southwell has entered a golden reputation erasouthwell has entered a golden reputation erasouthwell has entered a golden reputation erasouthwell has entered a golden reputation erasouthwell has entered a golden reputation erasouthwell has entered a golden reputation erasouthwell has entered a golden reputation erasouthwell has entered a golden reputation erasouthwell has entered a golden reputation erasouthwell has entered a golden reputation erasouthwell has entered a golden reputation era
Re: WSUS and WHS

This is the script i made at work. Which fixes any of my WSUS problems.
Then in group policy i have a policy for each OU just with the target group changed to that OU's name, otherwise the machines don't go in the right groups in WSUS.

Im not sure if you are running it on a local machine or not, but the below clears out all the stuff that caused me problems.

@echo off
echo.
Echo This batch file will do the following:
Echo 1. Stop the wuauserv service
Echo 2. Delete the AccountDomainSid registry key (if it exists)
Echo 3. Delete the PingID registry key (if it exists)
Echo 4. Delete the SusClientId registry key (if it exists)
Echo 5. Restart the wuauserv service
Echo 6. Resets the Authorization Cookie
echo.
@echo on
net stop wuauserv
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Wi ndowsUpdate" /v AccountDomainSid /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Wi ndowsUpdate" /v PingID /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Wi ndowsUpdate" /v SusClientId /f
net start wuauserv
wuauclt /resetauthorization /detectnow
@echo off
southwell is offline   Reply With Quote