bat script for automating the updates
6:59 PMApplies for 2003,2008
Few things to Note :
* this script query’s to registry (marked in Blue)of the patch so you need add the Registry key to which it need to query( you can get that details in the download site
*You need to Very particular about the location,Best Classification would be Like this
**location : D drive
**Patch Location : Better if you can save it with MS article number
ex : MS06-017
so the location classification can be \\Server\d$\Ms06-017 this can locate your patches easily
************************************************************************
set inst= Location
echo ***** Hotfix MS06-017 Vulnerability in Microsoft FrontPage Server Extensions Could Allow Cross-Site Scripting (917627) *****
REM ***** Date of added*****
%windir%\reg.exe query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP2\KB908981\File list"
IF ERRORLEVEL 1 GOTO INSTALLMS06-017
IF ERRORLEVEL 0 GOTO PASSMS06-017
:INSTALLMS06-017
echo Installing Hotfix MS06-017 Vulnerability in Microsoft FrontPage Server Extensions...
%inst%\MS06-017\WindowsServer2003-KB908981-x86-ENU.exe /passive /norestart /log:%inst%\MS06-017\
ECHO Install Complete.
goto ENDMS06-017
:PASSMS06-017
echo Hotfix MS06-017 Vulnerability in Microsoft FrontPage Server Extensions is already installed.
goto ENDMS06-017
:ENDMS06-017
echo.
REM ***** End of Hotfix MS06-017 Vulnerability in Microsoft FrontPage Server Extensions Could Allow Cross-Site Scripting (917627) *****
0 comments