You are on page 1of 1

echo off This file is used one time to re-establish Microsoft patches from WSUS

echo off
wuauclt /resetauthorization /detectnow

REG Delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v


SusClientId /f
REG Delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v
SusClientIdValidation /f

gpupdate

net stop wuauserv /y


net stop BITS /y
rd C:\WINDOWS\SoftwareDistribution /s /Q
del "c:\windows\windowsupdate.log"
regsvr32 WUAPI.DLL /s
regsvr32 WUAUENG.DLL /s
regsvr32 WUAUENG1.DLL /s
regsvr32 ATL.DLL /s
regsvr32 WUCLTUI.DLL /s
regsvr32 WUPS.DLL /s
regsvr32 WUPS2.DLL /s
regsvr32 WUWEB.DLL /s
regsvr32 msxml3.dll /s
net start BITS /y
net start wuauserv /y

wuauclt /resetauthorization /detectnow


echo Verify all parts of this command file executed
wuauclt /reportnow
exit

You might also like