Listing 1: Excerpt from Patch.bat @Echo Off Color 1F Title Windows 2000 Hotfix Install :install Echo Installing patches for Windows 2000... Echo ------------------------------------------------------------- Echo Patch list updated as of 07/13/2004. Echo. Echo Today is %date%. Echo. Rem The following three patches are examples of existing hotfixes. Echo. Echo Checking for MS02-042: Flaw in Network Connection Manager Can Cause Rights Elevation... .\Reg\Reg.exe Query "HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\Updates\Windows 2000\SP4\Q326886\Description" /s || Echo Patching - see Q326886... && .\OS\Q326886\Q326886_W2K_SP4_X86_EN.exe -q -z Echo. Echo Checking for MS02-045: Unchecked Buffer in Network Share Provider May Lead to Denial-of-Service... .\Reg\Reg.exe Query "HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\Updates\Windows 2000\SP4\Q326830\Description" /s || Echo Patching - see Q326830... && .\OS\Q326830\Q326830_W2K_SP4_X86_EN.exe -q -z Echo. Echo Checking for MS02-048: Flaw in Certificate Enrollment Control May Cause Digital Certificates to Be Deleted... .\Reg\Reg.exe Query "HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\Updates\Windows 2000\SP4\Q323172\Description" /s || Echo Patching - see Q323172... && .\OS\Q323172\q323172_W2K_SP4_X86_EN.exe -u -q -z