cwstad2
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\Wi ndows\Curr entVersion \WindowsUp date /v SusClientId /f
reg delete "HKLM\SOFTWARE\Microsoft\W indows\Cur rentVersio n\WindowsU pdate\Auto Update" /v LastWaitTimeout /f
reg delete "HKLM\SOFTWARE\Microsoft\W indows\Cur rentVersio n\WindowsU pdate\Auto Update" /v DetectionStartTime /f
reg delete "HKLM\SOFTWARE\Microsoft\W indows\Cur rentVersio n\WindowsU pdate\Auto Update" /v NextDetectionTime /f
del %WINDIR%\WindowsUpdate.log /S /Q
rd /s /q %windir%\softwareDistribut ion
%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;;CC DCLCSWRPWP DTLOCRSDRC WDWO;;;BA) (A;;CCLCSW LOCRRC;;;A U)(A;;CCLC SWRPWPDTLO CRRC;;;PU)
sc sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;; ;SY)(A;;CC DCLCSWRPWP DTLOCRSDRC WDWO;;;BA) (A;;CCLCSW LOCRRC;;;A U)(A;;CCLC SWRPWPDTLO CRRC;;;PU)
wuauclt /resetauthorization /detectnow
wuauclt /reportnow
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\Wi
reg delete "HKLM\SOFTWARE\Microsoft\W
reg delete "HKLM\SOFTWARE\Microsoft\W
reg delete "HKLM\SOFTWARE\Microsoft\W
del %WINDIR%\WindowsUpdate.log
rd /s /q %windir%\softwareDistribut
%Windir%\system32\net.exe start cryptsvc
%Windir%\system32\net.exe start bits
%Windir%\system32\net.exe start wuauserv
sc sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;
sc sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;
wuauclt /resetauthorization /detectnow
wuauclt /reportnow
ASKER
Hi Santosh, these are in the unassigned computers with no GP applied
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\W indows\Cur rentVersio n\WindowsU pdate\Auto Update" /v LastWaitTimeout /f
reg delete "HKLM\SOFTWARE\Microsoft\W indows\Cur rentVersio n\WindowsU pdate\Auto Update" /v DetectionStartTime /f
reg delete "HKLM\SOFTWARE\Microsoft\W indows\Cur rentVersio n\WindowsU pdate\Auto Update" /v NextDetectionTime /f
thanks
reg delete "HKLM\SOFTWARE\Microsoft\W
reg delete "HKLM\SOFTWARE\Microsoft\W
reg delete "HKLM\SOFTWARE\Microsoft\W
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/
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/
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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.