Virtual Brain Online Logo

Bookmark: Root \ Windows \ Windows 2003 (32-bit) patch script

Windows 2003 (32-bit) patch script


Last Updated: 2005-11-27

@echo off



REM ##############################################################################

REM

REM Windows 2003 (32-bit) patch script by Doc Rice v1.2

REM This script requires the use of REG.EXE from the Windows NT 4.0 Resource Kit,

REM the SLEEP.EXE utility, and QFECHECK.EXE.

REM

REM An updated version of REG.EXE utility can be found at:

REM

REM ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/nt40/i386/reg_x86.exe

REM

REM SLEEP.EXE can be found at:

REM

REM http://www2.gol.com/users/trane/programming/programming.html

REM

REM QFECHECK.EXE can be found at:

REM

REM http://support.microsoft.com/default.aspx?scid=kb;EN-US;q282784

REM

REM WARNING: This script assumes your Windows 2003 OS has been installed with

REM defaults and currently has DirectX 8.1.

REM

REM Please see http://winpatch.homeip.net for updated information.

REM

REM ##############################################################################





color 1F

title Windows 2003 Hotfix Install



:install

echo Installing patches for Windows 2003...

echo --------------------------------------------------------------------------------

echo Patch list updated as of 07/13/2004.

echo.

echo Today is %date%.

echo.

echo.

echo.





REM -------------------------------------------------------------



echo.

echo Checking for MS03-023...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB823559\Description" /s || echo Patching - see Q823559... && .\OS\Q823559\WindowsServer2003-KB823559-x86-ENU.exe /u /q /z



echo.

echo Checking for MS03-035...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB824105\Description" /s || echo Patching - see Q824105... && .\OS\Q824105\WindowsServer2003-KB824105-x86-ENU.exe /u /q /z



echo.

echo Checking for MS03-039...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB824146\Description" /s || echo Patching - see Q824146... && .\OS\Q824146\WindowsServer2003-KB824146-x86-ENU.exe /u /q /z



echo.

echo Checking for MS03-041...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB823182\Description" /s || echo Patching - see Q823182... && .\OS\Q823182\WindowsServer2003-KB823182-x86-ENU.exe /u /q /z



echo.

echo Checking for MS03-043...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB828035\Description" /s || echo Patching - see Q828035... && .\OS\Q828035\WindowsServer2003-KB828035-x86-ENU.exe /quiet /norestart



echo.

echo Checking for MS03-044...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB825119\Description" /s || echo Patching - see Q825119... && .\OS\Q825119\WindowsServer2003-KB825119-x86-ENU.exe /u /q /z



echo.

echo Checking for MS03-045...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB824141\Description" /s || echo Patching - see Q824141... && .\OS\Q824141\WindowsServer2003-KB824141-x86-ENU.exe /u /q /z



echo.

echo Checking for MS04-006...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB830352\Filelist" /s || echo Patching - see Q830352... && .\OS\Q830352\WindowsServer2003-KB830352-x86-ENU.exe /quiet /norestart



echo.

echo Checking for MS04-007...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB828028\Filelist" /s || echo Patching - see Q828028... && .\OS\Q828028\WindowsServer2003-KB828028-x86-ENU.exe /quiet /norestart



echo.

echo Checking for MS04-011...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB835732\Filelist" /s || echo Patching - see Q835732... && .\OS\Q835732\WindowsServer2003-KB835732-x86-ENU.EXE /quiet /norestart



echo.

echo Checking for MS04-012...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB828741\Filelist" /s || echo Patching - see Q828741... && .\OS\Q828741\WindowsServer2003-KB828741-x86-ENU.EXE /quiet /norestart



echo.

echo Checking for MS04-014...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB837001\Filelist" /s || echo Patching - see Q837001... && .\OS\Q837001\WindowsServer2003-KB837001-x86-ENU.EXE /quiet /norestart



echo.

echo Checking for MS04-015: Vulnerability in Help and Support Center Could Allow Remote Code Execution...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB840374\Filelist" /s || echo Patching - see Q840374... && .\OS\Q840374\WindowsServer2003-KB840374-x86-ENU.EXE /quiet /norestart



echo.

echo Checking for MS04-016: Vulnerability in DirectPlay Could Allow Denial of Service...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB839643\Filelist" /s || echo Patching - see Q839643... && .\OS\Q839643\WindowsServer2003-KB839643-x86-ENU.EXE /quiet /norestart



echo.

echo Checking for MS04-023: Vulnerability in HTML Help Could Allow Code Execution...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB840315\Filelist" /s || echo Patching - see Q840315... && .\OS\Q840315\WindowsServer2003-KB840315-x86-enu.exe /quiet /norestart



echo.

echo Checking for MS04-024: Vulnerability in Windows Shell Could Allow Remote Code Execution...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB839645\Filelist" /s || echo Patching - see Q839645... && .\OS\Q839645\WindowsServer2003-KB839645-x86-enu.exe /quiet /norestart





REM -------------------------------------------------------------

echo.

echo.

echo Patching Internet Explorer

echo --------------------------------------------------------------------------------

echo.



echo.

echo Checking for MS04-004...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Hotfix\KB832894\Description" /s || echo Patching - see Q832894... && .\IE_60\Q832894\WindowsServer2003-KB832894-x86-ENU.EXE /u /q /z





REM -------------------------------------------------------------

echo.

echo.

echo Patching DirectX 8.1

echo --------------------------------------------------------------------------------

echo.



echo.

echo Checking for MS03-030...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB819696\Description" /s || echo Patching - see Q819696... && .\DirectX\Q819696\WindowsServer2003-KB819696-x86-ENU.exe /u /q /z





REM -------------------------------------------------------------

echo.

echo.

echo Patching Windows Media Player

echo --------------------------------------------------------------------------------

echo.



echo.

echo Checking for Q828026...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Media Player\wm828026\Description" /s || echo Patching - see Q828026... && .\WMP\Q828026\WindowsMedia-KB828026-x86-ENU.exe /u /q /z





REM -------------------------------------------------------------

echo.

echo.

echo Patching MDAC

echo --------------------------------------------------------------------------------

echo.



echo.

echo Checking for MS04-003: Buffer Overrun in MDAC Function Could Allow Code Execution...

.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\DataAccess\Q832483" /s || echo Patching - see Q832483... && .\MDAC\Q832483\ENU_Q832483_MDAC_x86.EXE /C:"dahotfix.exe /q /n" /q:a





REM -------------------------------------------------------------

echo.

echo.

echo Qchaining hotfixes...

echo.



.\Qchain\qchain.exe





REM -------------------------------------------------------------

color

echo.

echo.

echo Initial update process for Windows 2003 completed. Please reboot

echo for all hotfixes to take effect and verify patch levels afterwards.

echo.



.\SLEEP\sleep.exe 03

goto end



:end

 

No Comments yet .....

 

Add Your Comment:

Note: All posts require administrator approval. Please allow 24 hours for message approval.

Name:
E-Mail:
Title
Plain text only, less then 65 000 characters.

Please write the numerical representation of six hundred twenty-five into the box below.

Please answer the question above and type the answer into the text box below.