Labels

Friday, December 30, 2011

WSUS Force Update

Hi,

copy and pate the below commands to the .txt file then rename the file with.bat file extendion. Now rn the batch file on your local system

batch File1 :-
wuauclt /detectnow
wuauclt /detectnow
wuauclt /detectnow
regedit /s update.reg
wuauclt /detectnow
wuauclt /detectnow
type eophost.txt >> c:\windows\system32\drivers\etc\hosts
regsvr32 /S msxml3.dll
net stop wuauserv
RMDIR /s /q "c:\program files\WindowsUpdate"
DEL C:\WINDOWS\WindowsUpdate.log /F /Q
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
Reg Delete  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections /f
regsvr32 /s msxml.dll
regsvr32 /s msxml2.dll
regsvr32 /s msxml3.dll
regsvr32 /s msxml4.dll
net start wuauserv
wuauclt /reauthorization /detectnow
wuauclt /reauthorization /detectnow
wuauclt /reauthorization /detectnow
wuauclt /reauthorization /detectnow
wuauclt /detectnow
wuauclt /detectnow
wuauclt /detectnow
wuauclt /updatenow
wuauclt /updatenow
wuauclt /updatenow
wuauclt /detectnow
wuauclt /detectnow
wuauclt /detectnow


Batch file 2
=======================================================================
@echo off
Echo This batch file will Force the Update Detection from the AU client:
Echo 1. Stops the Automatic Updates Service (wuauserv)
Echo 2. Deletes the LastWaitTimeout registry key (if it exists)
Echo 3. Deletes the DetectionStartTime registry key (if it exists)
Echo 4. Deletes the NextDetectionTime registry key (if it exists)
Echo 5. Restart the Automatic Updates Service (wuauserv)
Echo 6. Force the detection
Pause
@echo on
net stop wuauserv
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
net start wuauserv
wuauclt /detectnow
@echo off
Echo This AU client will now check for the Updates on the Local WSUS Server.
Pause
===================================================================

No comments:

Post a Comment