@rem Build a Bootable Windows 2000 disk with SP4 and all critical post-SP4 hotfixes slipstreamed in @rem Build a Bootable Windows XP disk with Service Pack 2 and all critical post-SP2 hotfixes slipstreamed in @rem Copyright (c) 2003-2007, Ross Smith. All rights reserved. @rem $Id$ @if "%debug%" == "" echo off @if not "%debug%" == "" echo on :: the full directory path containing the original Windows XP installation CD files :: do not include trailing backslash set sourcedir=D: set builddir= set hotfixdir= :: options for hotfixes set options=/passive /norestart if exist local.cmd call local.cmd :: the full directory path to copy the CD files, to enable them to be slipstreamed :: do not include trailing backslash :: if left blank, you will be asked to enter it if not "%~2" == "" set builddir=%2 :: the relative directory containing the SP2 and all hotfixes :: do not include trailing backslash :: if left blank, the current directory will be used if not "%~3" == "" set hotfixdir=%3 verify other 2>nul setlocal enableextensions setlocal enabledelayedexpansion if not "%~1" == "" set sourcedir=%1 if not defined hotfixdir set hotfixdir=%cd% if exist "%sourcedir%\WIN51" goto source_ok :get_source echo This script will copy files from a Windows XP installation CD to a directory echo you choose, and download and slipstream Service Pack 2 and all Post-SP2 echo security hotfixes into it. echo. echo Enter the directory containing the Windows XP installation CD files :: echo (If it's the root directory, do not enter a trailing backslash) set REPLY= set /p REPLY=or press [Enter] for '%sourcedir%' or enter Q to quit : if "%reply%" == "" set reply=%sourcedir% if /i "%reply%" == "Q" goto :eof if not exist "%reply%\" ( echo. echo The directory '%reply%' does not exist. echo. goto get_source ) if not exist "%reply%\WIN51" ( echo. echo The directory '%reply%' does not contain a Windows XP installation CD. echo. goto get_source ) set sourcedir=%reply% :source_ok if defined builddir goto builddir_ok set _bs=%sourcedir:~-1% if "%_bs%" == "\" set sourcedir=%sourcedir:~0,-1% if "%builddir%" == "" ( set vol= for /f "usebackq tokens=6" %%a in (`vol %sourcedir%`) do set vol=%%a if "!vol!" == "" set vol=xpsp2_cd set builddir=%cd%\!vol! ) :get_builddir echo. echo Enter the full directory name to copy the Windows XP Installation files to set REPLY= set /p REPLY="or press [Enter] for '%builddir%' or enter Q to quit: " if "%reply%" == "" set reply=%builddir% if /i "%reply%" == "Q" goto :eof mkdir "%reply%" if not exist "%reply%\" ( echo. echo Unable to create directory '%reply%' echo. goto get_builddir ) set builddir=%reply% :builddir_ok set svcpackdir=%builddir%\i386\svcpack if exist "%hotfixdir%" goto hotfix_ok :get_hotfix echo. echo Enter the directory path to contain Service Pack 2 and the hotfixes set /p REPLY="or press [Enter] for '%hotfixdir%' or enter Q to quit: " if /i "%reply%" == "Q" goto :eof if not exist "%reply%\" ( echo. echo The directory '%reply%' does not exist echo. goto get_hotfix ) set hotfixdir=%reply% :hotfix_ok if not exist "%builddir%\I386\" ( echo. echo Copying "%sourcedir%" to "%builddir%"... echo. if not exist "%builddir%\*.*" mkdir "%builddir%" xcopy "%sourcedir%\." "%builddir%" /e/r/y if errorlevel 1 ( echo The copy did not complete successfully. goto :eof ) ) echo Please save all files in the directory '%hotfixdir%' if not "%DOWNLOADER%" == "" goto start_downloads wget --version >nul 2>nul if not errorlevel 9009 ( set DOWNLOADER=wget -nd -N goto start_downloads ) curl --version >nul 2>nul if not errorlevel 9009 ( set DOWNLOADER=curl -k -L -O -R goto start_downloads ) set DOWNLOADER=start /D"%hotfixdir%" /wait /b :start_downloads :: :: :: Cumulative Security Update for Internet Explorer 6 SP1 (KB939653) :: This update addresses the vulnerability discussed in Microsoft Security Bulletin MS07-057. To find out if other security updates are available for you, see the Additional Information section at the bottom of this page. call :download http://download.microsoft.com/download/7/8/4/78413e07-3376-4426-bed8-60901bd131a5/IE6.0sp1-KB939653-Windows2000-x86-ENU.exe :: :: :: Security Update for Outlook Express 6 Service Pack 1 (KB941202) :: A security issue has been identified in Outlook Express that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/b/0/9/b095c912-2f15-44c1-a339-852bac7d2397/OE6.0sp1-KB941202-Windows2000-x86-ENU.exe :: :: :: Security Update for Windows 2000 (KB933729) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/3/a/b/3ab2060f-e590-4803-8176-8f324074fdef/Windows2000-KB933729-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB923810) :: A security issue has been identified in Windows Kodak Image Viewer that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/8/3/e/83e821a9-4b14-4ab8-84ed-6d587d5b1c2b/Windows2000-KB923810-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB938827) :: A security issue has been identified in Microsoft Agent that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/c/1/2/c12a5836-34ca-404b-87ef-dd870cbdf092/Windows2000-KB938827-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB938829) :: A security issue has been identified in Microsoft GDI that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/1/e/0/1e0aea96-e2f4-4abf-a011-885ed3c19d4f/Windows2000-KB938829-x86-ENU.EXE :: :: :: Security Update for Microsoft XML Core Services 4.0 Service Pack 2 (KB936181) :: A security issue has been identified in Microsoft XML Core Services (MSXML) that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/9/4/2/9422e6b6-08ee-49cb-9f05-6c6ee755389e/msxml4-KB936181-enu.exe :: :: :: Security Update for Windows 2000 (KB936021) :: A security issue has been identified in Microsoft XML Core Services (MSXML) that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/8/8/5/885d7f8b-0355-45d9-a589-7c884ffea28b/Windows2000-KB936021-x86-ENU.EXE :: :: :: Security Update for Microsoft XML Core Services 6.0 and Service Pack 1 (KB933579) :: A security issue has been identified in Microsoft XML Core Services (MSXML) that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/1/9/c/19cb7ce9-0ff3-4c66-9923-dfd368fd9cd3/msxml6-KB933579-enu-x86.exe :: :: :: Security Update for Windows 2000 (KB921503) :: A security issue has been identified that could allow an attacker to remotely compromise your Windows-based system using Object Linking and Embedding (OLE) Automation and gain control over it. call :download http://download.microsoft.com/download/8/e/8/8e833d75-d69c-4920-afbe-5d1bdf3558dd/Windows2000-KB921503-x86-ENU.EXE :: :: :: Security Update for Internet Explorer 6 Service Pack 1 (KB938127) :: This update addresses the vulnerability discussed in Microsoft Security Bulletin MS07-050. To find out if other security updates are available for you, see the Additional Information section at the bottom of this page. call :download http://download.microsoft.com/download/8/e/8/8e8e6059-f1c9-42c4-8010-fdb430920477/IE6.0sp1-KB938127-Windows2000-x86-ENU.exe :: :: :: Security Update for Windows 2000 (KB935840) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system using Secure Channel and gain control over it. call :download http://download.microsoft.com/download/f/0/2/f02c7875-1e33-417e-91c2-d851d6c412ea/Windows2000-KB935840-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB935839) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system using a Windows kernel API and gain control over it. call :download http://download.microsoft.com/download/d/3/1/d3139d8f-1d52-4b7e-a4e4-39735162cd41/Windows2000-KB935839-x86-ENU.EXE :: :: :: Update for Windows 2000 (KB927891) :: This is a reliability update. This update resolves an issue in the Windows Installer (MSI) that can affect performance during software updates. call :download http://download.microsoft.com/download/a/7/b/a7b60f59-fdf8-4632-871e-c01e5cea6b62/Windows2000-KB927891-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB935966) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/2/c/8/2c841492-8c0f-4273-b2c6-7072595731da/Windows2000-KB935966-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB931784) :: A security issue has been identified in the Windows Kernel that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/6/2/0/62000463-2b27-435a-a80c-7e93566ee71e/Windows2000-KB931784-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB930178) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/3/b/c/3bc7f298-6d57-4429-902c-b723c7cb13ee/Windows2000-KB930178-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB925902) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/3/e/1/3e17bdd4-2808-4e6b-982c-01e3b2bbe7ec/Windows2000-KB925902-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB928843) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/9/2/c/92cab157-5f80-4be0-940b-4ff4675a0756/Windows2000-KB928843-x86-ENU.EXE :: :: :: Security Update for Microsoft Data Access Components 2.5 Service Pack 3 (KB927779) :: A security issue has been identified in Microsoft Data Access Components (MDAC) that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/3/b/1/3b19dab7-7da7-4340-ad7d-e6808185d6e6/MDAC253-KB927779-x86-ENU.exe :: :: :: Security Update for Windows 2000 (KB926436) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/5/7/b/57bb4ac3-2487-4489-aa17-5f74a9e79aab/Windows2000-KB926436-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB924667) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/1/f/7/1f7de6a2-d1af-4a97-819a-eda8e9ee08ec/Windows2000-KB924667-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB918118) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/4/1/a/41ae66b6-c394-4643-9425-6e8c484d6df0/Windows2000-KB918118-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB926247) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/6/a/f/6af940c1-2774-4ebb-8546-2c83068af231/Windows2000-KB926247-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB926121) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/9/e/c/9ec6574e-0cab-4a2c-b183-c3c4398591a6/Windows2000-KB926121-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB923689) :: A security issue has been identified that could allow an attacker to remotely compromise your Windows-based system using Windows Media file formats and gain control over it. call :download http://download.microsoft.com/download/a/0/4/a04536d6-e489-4663-a635-eb23ddc354a0/Windows2000-KB923689-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB924270) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/e/2/7/e272bf85-2592-4bcf-bb43-4974bc4fc276/Windows2000-KB924270-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB923980) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/1/3/9/139ee8ea-668d-449a-8beb-7f29307d2323/Windows2000-KB923980-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB920213) :: A security issue has been identified in MSAgent that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/e/5/1/e5128d1b-0912-4f3f-98bf-404f51d5b8d5/Windows2000-KB920213-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB923414) :: A security issue has been identified in the Server service that could allow a remote user to cause an affected Windows-based system to stop responding. call :download http://download.microsoft.com/download/9/a/c/9ac4f629-5860-401c-b0c6-87d1428dfe5f/Windows2000-KB923414-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB923191) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/8/7/a/87aab50e-8239-4b88-89a6-280135b64915/Windows2000-KB923191-x86-ENU.EXE :: :: :: Update for Windows 2000 (KB922582) :: A problem has been identified in Filter Manager that can prevent you from installing updates from Windows update. call :download http://download.microsoft.com/download/1/e/6/1e63b17d-13c8-4d32-8676-c9f7ab05db87/Windows2000-KB922582-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB920685) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain access to restricted data. call :download http://download.microsoft.com/download/9/8/1/981ee358-dcaa-41fc-8ad8-e30eacd6a739/Windows2000-KB920685-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB921398) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/2/3/6/236323d3-fd81-43a4-a42f-31fe74705c55/Windows2000-KB921398-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB920683) :: A security issue has been identified in DNS Resolution that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/b/4/7/b472d553-f4d1-42a5-baf9-d58bd713e492/Windows2000-KB920683-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB920670) :: A security issue has been identified that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/2/1/2/212fd127-6a0b-4a52-a0ae-c005b752c90f/Windows2000-KB920670-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB917008) :: A security issue has been identified in the Microsoft Management Console that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/d/1/5/d1555c27-be62-4a61-946d-5d2b70a52211/Windows2000-KB917008-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB917537) :: A security issue has been identified that could allow an attacker to remotely compromise your Windows-based system using Windows Internet Information Services and gain control over it. call :download http://download.microsoft.com/download/0/4/8/0488144f-dc64-4acb-94bc-298a23fe1bc5/Windows2000-KB917537-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB914388) :: A remote code execution security issue has been identified in the DHCP Client service that could allow an attacker to remotely compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/c/5/c/c5c7e8a7-9ad1-4cb8-9fbf-6eb96af1c390/Windows2000-KB914388-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB911280) :: A remote code execution security issue has been identified in the Routing and Remote Access service that could allow an attacker to remotely compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/4/1/0/410acd05-29da-4755-9c93-24fb255abde6/Windows2000-KB911280-v2-x86-ENU.EXE :: :: :: JScript 5.6 Security Update for Windows 2000 (KB917344) :: An attacker may exploit a vulnerability in Windows Script Engine by constructing a Web page that, when visited by a user, runs code of the attacker’s choice with user credentials. call :download http://download.microsoft.com/download/b/c/3/bc3a0c36-fada-497d-a3de-8b0139766f3b/Windows2000-KB917344-56-x86-enu.Exe :: :: :: Security Update for Windows 2000 (KB917953) :: A security issue has been identified that could allow an attacker to compromise your Microsoft Windows-based system and gain control over it. call :download http://download.microsoft.com/download/7/4/9/749e48cf-3cef-4261-9d0f-138b75ab8fb6/Windows2000-KB917953-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB914389) :: A local elevation of privilege security issue has been identified in the Server Message Block that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/b/9/1/b9138093-8b79-424b-a1b4-a22357711484/Windows2000-KB914389-x86-ENU.EXE :: :: :: Vulnerability in ART Image Rendering Could Allow Remote Code Execution in Internet Explorer 6 Service Pack 1 (KB918439) :: This update addresses the vulnerability discussed in Microsoft Security Bulletin MS06-022. To find out if other security updates are available for you, see the Additional Information section at the bottom of this page. call :download http://download.microsoft.com/download/e/c/f/ecf2d7ac-c658-4d7c-a7c0-a62152774664/IE6.0sp1-KB918439-Windows-2000-XP-x86-ENU.exe :: :: :: Security Update for Windows 2000 (KB913580) :: A security issue has been identified in Windows-based systems that could cause the Microsoft Distributed Transaction Coordinator (MSDTC) to stop responding. call :download http://download.microsoft.com/download/f/e/3/fe3bbced-6da4-4a8d-b90e-260c2ada9b6b/Windows2000-KB913580-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB908531) :: A security issue has been identified in Windows Explorer that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/7/f/4/7f46246e-f633-42d9-8f7b-aa5536f1bcd5/Windows2000-KB908531-v2-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB908519) :: A security issue has been identified that could allow an attacker to compromise your Microsoft Windows-based system and gain control over it. call :download http://download.microsoft.com/download/4/2/6/426603e1-0d9c-4f70-90a3-716e51ca302d/Windows2000-KB908519-x86-ENU.EXE :: :: :: Security Update for DirectX 7.0 for Windows 2000 (KB904706) :: A security issue has been identified that could allow an attacker to remotely compromise your Windows-based system using DirectShow and gain control over it. call :download http://download.microsoft.com/download/f/d/a/fda566b9-818b-4901-adc6-f0b406b25f77/Windows2000-KB904706-v2-x86-ENU.exe :: :: :: Update for Windows 2000 (KB908506) :: Install this update to address an issue on computers running Windows 2000 Service Pack 4 in which clients accessing a print device attached to a print server are no longer able to print when using the Lexmark Monolithic PCL driver after installing security bulletin MS05-043 (KB896423). call :download http://download.microsoft.com/download/4/0/1/40109ea1-c446-4628-9ff6-2fa4f9c4a23d/Windows2000-KB908506-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB905749) :: A security issue has been identified in the Plug and Play service that could allow an authenticated attacker to compromise your Microsoft Windows-based system and gain control over it. call :download http://download.microsoft.com/download/8/9/4/89449a45-8708-4320-b1d0-1e2580d15a86/Windows2000-KB905749-x86-ENU.EXE :: :: :: Security Update for Internet Explorer 6 Service Pack 1 for Windows 2000 Service Pack 4 (KB905495) :: A security issue has been identified that could allow an attacker to tamper with the file transfer location on your computer when using the Microsoft Windows FTP (File Transfer Protocol) client. call :download http://download.microsoft.com/download/2/6/7/2670f435-2255-4a87-9183-1b28a51c7595/IE6.0sp1-KB905495-Windows2000-x86-ENU.exe :: :: :: Security Update for Windows 2000 (KB905414) :: A denial of service security issue has been identified that could cause the Network Manager service to stop responding on your Windows-based system. call :download http://download.microsoft.com/download/6/9/f/69f0d119-5cee-49b5-85d0-ae4fc56c7879/Windows2000-KB905414-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB901017) :: A security issue has been identified that could allow an attacker to remotely compromise your Windows-based system using Collaboration Data Objects (CDO) and gain control over it. call :download http://download.microsoft.com/download/2/2/3/22364e62-e9cd-4c5b-bf40-b742fab0e02d/Windows2000-KB901017-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB900725) :: A security issue has been identified that could allow an authenticated attacker to gain access and potentially compromise your Microsoft Windows-based system. call :download http://download.microsoft.com/download/6/1/f/61fd8ca9-13ef-4efd-9340-7a1b7e723582/Windows2000-KB900725-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB899589) :: A security issue has been identified in the Client Service for NetWare that could allow an attacker to compromise your Microsoft Windows-based system and gain control over it, if you have installed this service. call :download http://download.microsoft.com/download/a/7/7/a776227b-9483-42d8-b5ec-a3a25366d40e/Windows2000-KB899589-x86-ENU.EXE :: :: :: Update Rollup 1 for Windows 2000 SP4 (KB891861) :: This update consists of previously released recommended, critical and security updates for Windows 2000, rolled into one convenient package. call :download http://download.microsoft.com/download/2/7/b/27b1d1a3-0299-4336-b88a-22b9f09817e2/Windows2000-KB891861-v2-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB899591) :: A security issue has been identified in the Remote Desktop Protocol (RDP) that could allow an attacker to remotely cause your Microsoft Windows-based system to stop responding. call :download http://download.microsoft.com/download/1/b/c/1bc34420-6a31-4b1d-b89b-c6c1dd7070a5/Windows2000-KB899591-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB899587) :: A security issue has been identified that could allow an attacker to gain access to sensitive data transmitted through your Microsoft Windows-based system in a domain environment, and to perform denial of service attacks against domain controllers. call :download http://download.microsoft.com/download/c/7/3/c739f44f-b5c1-4fa7-bd85-f8c833f35e74/Windows2000-KB899587-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB896423) :: A security issue has been identified in the Print Spooler service that could allow an attacker to compromise your Microsoft Windows-based system and gain control over it. call :download http://download.microsoft.com/download/4/3/2/43215dcd-b8b3-4c8f-a40f-278789f4eb33/Windows2000-KB896423-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB893756) :: A security issue has been identified in the Telephony Application Programming Interface (TAPI) that could allow an attacker to compromise your Microsoft Windows-based system and gain control over it. call :download http://download.microsoft.com/download/d/1/3/d1323977-bdab-4b38-8ab6-ec9d985f726e/Windows2000-KB893756-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB901214) :: A security issue has been identified in the Color Management Module that could allow an attacker to compromise your Microsoft Windows-based system and gain control over it. call :download http://download.microsoft.com/download/d/d/e/ddefcaa8-f0e4-4a98-b96e-c3b2217370e9/Windows2000-KB901214-x86-ENU.EXE :: :: :: Security Update for Windows 2000 (KB896358) :: A security issue has been identified in the HTML Help component that could allow an attacker to compromise your Windows-based system and gain control over it. call :download http://download.microsoft.com/download/f/2/8/f284148a-a991-4ee2-bb2f-12aa0d2e5013/Windows2000-KB896358-x86-ENU.EXE goto :eof if not exist "%builddir%\sp4.cab" ( :: :: :: Windows 2000 Service Pack 4 Network Install for IT Professionals :: Windows 2000 Service Pack 4 (SP4) is a recommended upgrade. Download Windows 2000 Service Pack 4 to obtain updates that can help improve security, application compatibility, operating system reliability, and Setup. :: W2KSP4_EN.EXE call :download http://download.microsoft.com/download/e/6/a/e6a04295-d2a8-40d0-a0c5-241bfecd095e/W2KSP4_EN.EXE set W2KSP_EN=!rv! if "!W2KSP_EN!" == "" ( echo Unable to determine SP4's filename goto :eof ) if not exist "%hotfixdir%\!W2KSP_EN!" ( echo File not found: '%hotfixdir%\!W2KSP_EN!' goto :eof ) echo Integrating !W2KSP_EN!... ::echo start "%hotfixdir%\!W2KSP_EN!" /wait "%hotfixdir%\!W2KSP_EN!" /integrate:"%builddir%" %options% start "Integrating !KB835935!..." /wait "%hotfixdir%\!W2KSP_EN!" /integrate:"%builddir%" %options% set e=%errorlevel% :: 3010 = reboot required if not "!e!" == "3010" ( if errorlevel 1 ( echo !W2KSP_EN! returned error %e% goto :eof ) ) ) for %%a in ("%hotfixdir%"\Windows*.exe) do ( for /f "delims=- tokens=2" %%b in ("%%a") do ( set kb=%%b ) if /i not "!kb!" == "KB835935" ( if not exist "%svcpackdir%\!kb!.cat" ( echo Integrating %%a... ::echo start "%%a" /wait "%%a" /integrate:"%builddir%" %options% start "Integrating %%a..." /wait "%%a" /integrate:"%builddir%" %options% set e=%errorlevel% :: 3010 = reboot required if not "!e!" == "3010" ( if errorlevel 1 ( echo %%a returned error %e% goto :eof ) ) ) ) ) echo. echo The directory '%builddir%' has been successfully updated. echo. goto :eof :download for /f "delims=/ tokens=8" %%a in ("%1") do set exe=%%a set rv=%exe% if "%rv%" == "" ( echo Unable to parse the filename from "%1" goto :eof ) if exist "%hotfixdir%\%rv%" goto :eof %DOWNLOADER% %1 :loop cls echo.|time|find "current" echo Waiting for "%hotfixdir%\%rv%" to appear echo or press [Ctrl]-[Break] to abort... ping -w 1000 -n 2 127.0.0.1 >nul 2>nul if not exist "%hotfixdir%\%rv%" goto :loop cacls "%hotfixdir%\%rv%" /T /E /C /G "%USERNAME%":F goto :eof