You are on page 1of 2

In my environment, we have more than 100 locations with about 25000 workstations , on two separate networks.

I've looked around for quite some time for a script that would fix workstations that refused to check in. The only one that I've found that works reliably is below. To give you a clue, w hen I first took over control of the WSUS server, on one network, there were just over 1700 machines connected . After setting up a GPO to have this script run as a computer logon script, we now have just under 15000 machines connected to the WSUS server. Here's the script: REM ** Start Fix_WSUS.bat script Echo This batch file will Force the Update Detection from the AU client: @echo on net stop wuauserv /y net stop bits /y rmdir c:\windows\SoftwareDistribution /S /Q del C:\Windows\WindowsUpdate.log /S /Q REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v Acc ountDomainSid /f REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v Pin gID /f Reg Delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v Sus ClientId /f Reg Delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v Sus ClientValidation /f REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Up date" /v LastWaitTimeout /f REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Up date" /v DetectionstartTime /f Reg Delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Up date" /v NextDetectionTime /f echo re-resistering Windows Update cpmponents.. regsvr32.exe regsvr32.exe regsvr32.exe regsvr32.exe regsvr32.exe regsvr32.exe regsvr32.exe regsvr32.exe c:\windows\system32\wuapi.dll /s c:\windows\system32\wups.dll /s c:\windows\system32\wuaueng.dll /s c:\windows\system32\wucltui.dll /s c:\windows\system32\msxml3.dll /s c:\windows\system32\wuaueng1.dll /s c:\windows\system32\wups2.dll /s c:\windows\system32\wuweb.dll /s

net start wuauserv /y net start bits /y echo Initiating Windows Updates detection cycle... wuauclt.exe /resetauthorization

wuauclt.exe /detectnow wuauclt.exe /reportnow @echo off REM **End Fix_WSUS.bat script

You might also like