Link to home
Start Free TrialLog in
Avatar of cwstad2
cwstad2Flag for United Kingdom of Great Britain and Northern Ireland

asked on

WSUS clients not reporting after being deleted

Hi all, i have had several hundred machines not report into the WSUS console for a number of months so i have ran the database cleanup and it removed the machines. Unfortunately i cant seem to get them back. I have tried running the following script but they still dont appear. Any ideas?

thanks

%Windir%\system32\gpupdate

%Windir%\system32\net.exe stop bits
%Windir%\system32\net.exe stop wuauserv
%Windir%\system32\net.exe stop cryptsvc
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientId /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v LastWaitTimeout /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v DetectionStartTime /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v NextDetectionTime /f
del %WINDIR%\WindowsUpdate.log /S /Q
rd /s /q %windir%\softwareDistribution
%Windir%\system32\net.exe start cryptsvc
%Windir%\system32\net.exe start bits
%Windir%\system32\net.exe start wuauserv


sc sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)


sc sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)

wuauclt /resetauthorization /detectnow
wuauclt /reportnow
Avatar of Santosh Gupta
Santosh Gupta

Hi,

Run the RSOP.msc and see if group policy is applied.

also share the windowsupdate.log file under c:\windows from any effected system/client.
Avatar of cwstad2

ASKER

Hi Santosh, these are in the unassigned computers with no GP applied
Avatar of cwstad2

ASKER

Hi Santosh, i think i have found the issue the log files shows a different WSUS server. Also when i run the above script and check the windowsupdate.log it shows WSUS SERVER as null. How can i change this so that it points to the new sever. Someone else had set this up before i inherited it. I have about 700 clients and servers that have this issue. Also the script says unable to find the specified registry key value

reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v LastWaitTimeout /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v DetectionStartTime /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v NextDetectionTime /f

thanks
As you said " you have hundreds of machines", so i would like to suggest you to do it through Group Policy.

Move these machines to any/new OU and apply the GPO.

http://knowledge.quickstart.com/configure-wsus-to-deploy-updates-using-group-policy/

http://www.grouppolicy.biz/2011/06/best-practices-group-policy-for-wsus/
Avatar of cwstad2

ASKER

Hi Santosh, GPO is enabled on the root of the client and server OU's but some of the GPO's are blocked. I moved one server and that appeared in the WSUS console. I will investigate the clients as these should not be blocked. Thanks. Its been set up in quite a complicated way with different Tiers from 1 to 4
Avatar of cwstad2

ASKER

Hi Santosh, is does WSUS look for clients in the AD or does it scan the network? The GPO for clients seems to be OK.
ASKER CERTIFIED SOLUTION
Avatar of Santosh Gupta
Santosh Gupta

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
WSUS knows nothing about active directory.. you use group policy and client side targetting to put the computers in the different groups.  it is a pull vice a push operation