I thought that in honor of M$Patch Tuesday” I’d throw out a bat file I use to reset troublesome XP clients that won’t talk or that stop talking to WSUS servers.  Feel free to use it.  The actual code is this below or you can download <— there.

I actually forget where I got all the code for this file, it’s a patchwork of a few different tech sites I found online of course.  Perhaps this code will help someone out.

Code:
____________________________________________________________
:: Re-registering update dll’s

regsvr32.exe %systemroot%\system32\wuweb.dll /s
regsvr32.exe %systemroot%\system32\wups2.dll /s
regsvr32.exe %systemroot%\system32\wups.dll /s
regsvr32.exe %systemroot%\system32\wucltui.dll /s
regsvr32.exe %systemroot%\system32\wuaueng1.dll /s
regsvr32.exe %systemroot%\system32\wuaueng.dll /s
regsvr32.exe %systemroot%\system32\wuapi.dll /s

:: Rename the Software Distribution folder on local workstation for WSUS

cd \

ren %WINDIR%\SoftwareDistribution SoftwareDistribution_old

:: Start automatic updates, re-registering dlls’s kills that service

net start “Automatic Updates”

:: Re-authorize with WSUS and detect updates

wuauclt /resetauthorization /detectnow
____________________________________________________________

I like to space my code out a lot and comment it so I can not only read it but so that others can also make sense of it.