This Script was written by Ron Williams so whole credit gose to him for this wonderful script.
Here is the script, save as a .bat file, and run at will!:
@echo off
REM ======================================================================
REM
REM Batch File
REM
REM NAME: Force Auto Updates Download
REM
REM AUTHOR: Ron Williams ,
REM DATE : 4/8/2009
REM COMMENT : Replace [proxyserverIP]:[proxyserverPort] with the ip and port of
REM your proxy server in the format 192.168.1.2:8080 (no brackets)
REM ======================================================================
proxycfg -p [proxyserverIP]:[proxyserverPort]
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
Orignal Post is on Ron Williams.IT.blog.
Here is the script, save as a .bat file, and run at will!:
@echo off
REM ======================================================================
REM
REM Batch File
REM
REM NAME: Force Auto Updates Download
REM
REM AUTHOR: Ron Williams ,
REM DATE : 4/8/2009
REM COMMENT : Replace [proxyserverIP]:[proxyserverPort] with the ip and port of
REM your proxy server in the format 192.168.1.2:8080 (no brackets)
REM ======================================================================
proxycfg -p [proxyserverIP]:[proxyserverPort]
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
Orignal Post is on Ron Williams.IT.blog.
No comments:
Post a Comment