echo off
echo This will install all hotfixes since CPSECPEP007S onto CallPilot server.
echo This will take some time.  A message will indicate installation is complete.
echo NOTE: SP2 is now required.  Install CPSECPEPSP2S first if not already installed.
pause

echo on

rem MS06-078 required 2 hotfixes.  One of them could have been missed
HotFixes\MS06-078\WindowsServer2003-KB923689-x86-ENU.exe /quiet /norestart /n

rem these 2 patches resolve an issue with Windows Update (see KB927891 KB932494)
HotFixes\KB927891\WindowsServer2003-KB927891-v5-x86-ENU.exe /quiet /norestart /n

HotFixes\WindowsUpdateAgent3.0\WindowsUpdateAgent30-x86.exe /quiet /norestart /n

HotFixes\MS07-039\WindowsServer2003-KB926122-x86-ENU.exe /quiet /norestart /n

HotFixes\MS07-040\WindowsServer2003-KB933854-x86-ENU.exe /quiet /norestart /n

rem the following patch resolves an issue with Intel Processor microcode
HotFixes\KB936357\WindowsServer2003-KB936357-x86-ENU.exe /quiet /norestart /n

HotFixes\MS07-050\WindowsServer2003-KB938127-x86-ENU.exe /quiet /norestart /n
rem try the IE7 one too in case IE7 is there
HotFixes\MS07-050\IE7-WindowsServer2003-KB938127-x86-ENU.exe /quiet /norestart /n

HotFixes\MS07-061\WindowsServer2003-KB943460-x86-ENU.exe /quiet /norestart /n

rem MS07-028 this fix is only needed if MBSAv2 has been installed on the CP server
HotFixes\MS07-028\CAPICOM-KB931906-v2102.exe /q

HotFixes\MS07-067\WindowsServer2003-KB944653-x86-ENU.exe /quiet /norestart /n

HotFixes\MS07-068\WindowsServer2003-KB941569-x86-ENU.exe /quiet /norestart /n

rem fix KB942840 You may experience slow Web browser performance when you view a Web page that uses 
rem JScript in Internet Explorer 6 on a Windows Server 2003-based computer (supercedes MS06-023)
HotFixes\KB942840\WindowsServer2003-KB942840-x86-ENU.exe /quiet /norestart /n

HotFixes\MS08-005\WindowsServer2003-KB942831-x86-ENU.exe /quiet /norestart /n

HotFixes\MS08-007\WindowsServer2003-KB946026-x86-ENU.exe /quiet /norestart /n

HotFixes\MS08-022\WindowsServer2003-KB944338-v2-x86-ENU.exe /quiet /norestart /n

rem An additional hotfix for SP2 systems only
HotFixes\KB948496\WindowsServer2003-KB948496-x86-ENU.exe /quiet /norestart /n

HotFixes\MS08-036\WindowsServer2003-KB950762-x86-ENU.exe /quiet /norestart /n

HotFixes\MS08-046\WindowsServer2003-KB952954-x86-ENU.exe /quiet /norestart /n

rem MS08-048 is an Outlook Express fix.  Not needed on CP5 servers,but maybe on CP4,web server
HotFixes\MS08-048\WindowsServer2003-KB951066-x86-ENU.exe /quiet /norestart /n

HotFixes\MS08-049\WindowsServer2003-KB950974-x86-ENU.exe /quiet /norestart /n

HotFixes\MS08-062\WindowsServer2003-KB953155-x86-ENU.exe /quiet /norestart /n

HotFixes\MS08-071\WindowsServer2003-KB956802-x86-ENU.exe /quiet /norestart /n

rem MS08-076 is partially superceded by MS09-052
rem MS08-076 needs 2 patches.  First one is for Windows Media Player 6.4
rem HotFixes\MS08-076\WindowsServer2003-KB954600-x86-ENU.exe /quiet /norestart /n
rem second one is for Windows Media Format Runtime 9.5
HotFixes\MS08-076\WindowsServer2003-KB952069-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-007\WindowsServer2003-KB960225-x86-ENU.exe /quiet /norestart /n

rem install hotfix KB967715 to fix autorun issue
HotFixes\KB967715\WindowsServer2003-KB967715-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-010\WindowsServer2003-KB923561-x86-ENU.exe /quiet /norestart /n

rem MS09-012 requires two patches
HotFixes\MS09-012\WindowsServer2003-KB952004-x86-ENU.exe /quiet /norestart /n
HotFixes\MS09-012\WindowsServer2003-KB956572-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-013\WindowsServer2003-KB960803-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-015\WindowsServer2003-KB959426-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-020\WindowsServer2003-KB970483-x86-ENU.exe /quiet /norestart /n

HotFixes\KB969898\WindowsServer2003-KB969898-x86-ENU.exe /quiet /norestart /n

rem MS09-037 requires 5 patches on Web Server OE6,ATL,WMP10,MSWebDVD,DHTML
HotFixes\MS09-037\WindowsServer2003-KB973354-x86-ENU.exe /quiet /norestart /n
HotFixes\MS09-037\WindowsServer2003-KB973507-x86-ENU.exe /quiet /norestart /n
HotFixes\MS09-037\WindowsServer2003-KB973540-x86-ENU.exe /quiet /norestart /n
HotFixes\MS09-037\WindowsServer2003-KB973815-x86-ENU.exe /quiet /norestart /n
HotFixes\MS09-037\WindowsServer2003-KB973869-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-040\WindowsServer2003-KB971032-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-041\WindowsServer2003-KB971657-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-042\WindowsServer2003-KB960859-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-044\WindowsServer2003-KB958469-x86-ENU.exe /quiet /norestart /n
rem Install additional patch in case RDP client 6.0 is present instead of 5.2
HotFixes\MS09-044\WindowsServer2003-KB956744-x86-ENU.exe /quiet /norestart /n

rem KB968389 to strengthen authentication
HotFixes\KB968389\WindowsServer2003-KB968389-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-046\WindowsServer2003-KB956844-x86-ENU.exe /quiet /norestart /n

rem 2 hotfixes needed for MS09-051
HotFixes\MS09-051\WindowsServer2003-KB954155-x86-ENU.exe /quiet /norestart /n
HotFixes\MS09-051\WindowsServer2003-KB975025-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-052\WindowsServer2003-KB974112-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-053\WindowsServer2003-KB975254-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-056\WindowsServer2003-KB974571-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-057\WindowsServer2003-KB969059-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-059\WindowsServer2003-KB975467-x86-ENU.exe /quiet /norestart /n

HotFixes\KB976749\WindowsServer2003-KB976749-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-069\WindowsServer2003-KB974392-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-071\WindowsServer2003-KB974318-x86-ENU.exe /quiet /norestart /n

HotFixes\MS09-073\WindowsServer2003-KB973904-x86-ENU.exe /quiet /norestart /n

HotFixes\KB955759\windowsserver2003-kb955759-x86-enu.exe /quiet /norestart /n

HotFixes\KB971737\windowsserver2003-kb971737-x86-enu.exe /quiet /norestart /n

HotFixes\KB973686\msxml6-KB973686-enu-x86.exe /quiet /norestart /n

HotFixes\KB973687\WindowsServer2003-KB973687-x86-ENU.exe /quiet /norestart /n

HotFixes\KB973688\msxml4-KB973688-enu.exe /quiet /norestart /n

HotFixes\KB973917\windowsserver2003-kb973917-x86-enu.exe /quiet /norestart /n

HotFixes\MS10-001\WindowsServer2003-KB972270-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-005\WindowsServer2003-KB978706-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-007\WindowsServer2003-KB975713-x86-ENU.exe /quiet /norestart /n

rem MS10-013 requires 2 hotfixes
HotFixes\MS10-013\WindowsServer2003-KB975560-x86-ENU.exe /quiet /norestart /n
HotFixes\MS10-013\WindowsServer2003-KB977914-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-015\WindowsServer2003-KB977165-x86-ENU.exe /quiet /norestart /n

rem two patches are needed for MS10-019
HotFixes\MS10-019\WindowsServer2003-KB979309-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-020\WindowsServer2003-KB980232-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-026\WindowsServer2003-KB977816-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-029\WindowsServer2003-KB978338-x86-ENU.exe /quiet /norestart /n

rem three patches are needed for MS10-033 one replaced
HotFixes\MS10-033\WindowsServer2003-KB978695-x86-ENU.exe /quiet /norestart /n
HotFixes\MS10-033\WindowsServer2003-KB979482-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-040\WindowsServer2003-KB982666-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-041\WindowsServer2003-KB979907-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-042\WindowsServer2003-KB2229593-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-052\WindowsServer2003-KB2115168-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-061\WindowsServer2003-KB2347290-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-063\WindowsServer2003-KB981322-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-065\WindowsServer2003-KB2124261-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-074\WindowsServer2003-KB2387149-x86-ENU.exe /quiet /norestart /n
rem copy new versions of mfc40.dll and mfc40u.dll to d:\nortel\bin
copy /Y C:\Windows\system32\mfc40.dll D:\Nortel\bin
copy /Y C:\Windows\system32\mfc40u.dll D:\Nortel\bin

HotFixes\MS10-076\WindowsServer2003-KB982132-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-081\WindowsServer2003-KB2296011-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-082\WindowsServer2003-KB2378111-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-083\WindowsServer2003-KB979687-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-084\WindowsServer2003-KB2360937-x86-ENU.exe /quiet /norestart /n

rem update to help strengthen authentication credentials in specific scenarios
HotFixes\KB2345886\WindowsServer2003-KB2345886-x86-ENU.exe /quiet /norestart /n

rem additional KB2467659 to fix issue caused by MS10-090
HotFixes\KB2467659\WindowsServer2003-KB2467659-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-096\WindowsServer2003-KB2423089-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-097\WindowsServer2003-KB2443105-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-099\WindowsServer2003-KB2440591-x86-ENU.exe /quiet /norestart /n

HotFixes\MS10-101\WindowsServer2003-KB2207559-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-002\WindowsServer2003-KB2419635-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-006\WindowsServer2003-KB2483185-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-011\WindowsServer2003-KB2393802-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-013\WindowsServer2003-KB2478971-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-014\WindowsServer2003-KB2478960-x86-ENU.exe /quiet /norestart /n

rem Update to the AutoPlay functionality in Windows
HotFixes\KB971029\WindowsServer2003-KB971029-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-020\WindowsServer2003-KB2508429-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-024\WindowsServer2003-KB2506212-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-030\WindowsServer2003-KB2509553-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-031\WindowsServer2003-KB2510587-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-033\WindowsServer2003-KB2485663-x86-ENU.exe /quiet /norestart /n

rem Update to resolve an issue which requires an update to the certificate revocation list 
rem on Windows systems and to keep your systems certificate list up to date
HotFixes\KB2524375\WindowsServer2003-KB2524375-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-037\WindowsServer2003-KB2544893-v2-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-038\WindowsServer2003-KB2476490-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-042\WindowsServer2003-KB2535512-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-043\WindowsServer2003-KB2536276-v2-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-062\WindowsServer2003-KB2566454-x86-ENU.exe /quiet /norestart /n

rem KB2562937 Update Rollup for ActiveX Kill Bits
HotFixes\KB2562937\WindowsServer2003-KB2562937-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-071\WindowsServer2003-KB2570947-x86-ENU.exe /quiet /norestart /n

rem KB2616676 Fraudulent Digital Certificates Could Allow Spoofing
HotFixes\KB2616676\WindowsServer2003-KB2616676-v2-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-075\Windows-en-US-KB2564958.exe /quiet /norestart /n

HotFixes\MS11-090\WindowsServer2003-KB2618451-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-093\WindowsServer2003-KB2624667-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-097\WindowsServer2003-KB2620712-x86-ENU.exe /quiet /norestart /n

HotFixes\MS11-100\WindowsServer2003-KB2656358-x86-ENU.exe /quiet /norestart /n

HotFixes\MS12-001\WindowsServer2003-KB2644615-x86-ENU.exe /quiet /norestart /n

HotFixes\MS12-002\WindowsServer2003-KB2603381-x86-ENU.exe /quiet /norestart /n

rem two patches are needed for MS12-004
HotFixes\MS12-004\WindowsServer2003-KB2598479-x86-ENU.exe /quiet /norestart /n
HotFixes\MS12-004\WindowsServer2003-KB2631813-x86-ENU.exe /quiet /norestart /n

HotFixes\MS12-005\WindowsServer2003-KB2584146-x86-ENU.exe /quiet /norestart /n

rem two patches are needed for MS12-006, 1 superceded by MS12-049
HotFixes\MS12-006\WindowsServer2003-KB2638806-x86-ENU.exe /quiet /norestart /n

HotFixes\MS12-009\WindowsServer2003-KB2645640-x86-ENU.exe /quiet /norestart /n

rem KB2647518 Cumulative Security Update for ActiveX Kill Bits: March 13, 2012
HotFixes\KB2647518\WindowsServer2003-KB2647518-x86-ENU.exe /quiet /norestart /n

HotFixes\MS12-024\WindowsServer2003-KB2653956-x86-ENU.exe /quiet /norestart /n

rem three patches are needed for MS12-034
HotFixes\MS12-034\WindowsServer2003-KB2659262-x86-ENU.exe /quiet /norestart /n
HotFixes\MS12-034\WindowsServer2003-KB2676562-x86-ENU.exe /quiet /norestart /n
HotFixes\MS12-034\WindowsServer2003-KB2686509-x86-ENU.exe /quiet /norestart /n

HotFixes\KB2695962\WindowsServer2003-KB2695962-x86-ENU.exe /quiet /norestart /n

HotFixes\MS12-036\WindowsServer2003-KB2685939-x86-ENU.exe /quiet /norestart /n

rem KB2718704 Cumulative Security Update for ActiveX Kill Bits: March 13, 2012
HotFixes\KB2718704\WindowsServer2003-KB2718704-x86-ENU.exe /quiet /norestart /n

rem MS12-043 needs 3 patches (msxml3,4,6), 2 replaced
HotFixes\MS12-043\WindowsServer2003-KB2719985-x86-ENU.exe /quiet /norestart /n

HotFixes\MS12-045\WindowsServer2003-KB2698365-x86-ENU.exe /quiet /norestart /n

HotFixes\MS12-048\WindowsServer2003-KB2691442-x86-ENU.exe /quiet /norestart /n

HotFixes\MS12-049\WindowsServer2003-KB2655992-x86-ENU.exe /quiet /norestart /n

rem KB2728973 Unauthorized digital certificates could allow spoofing
HotFixes\KB2728973\rvkroots.exe /Q

rem two patches are needed for MS12-054
HotFixes\MS12-054\WindowsServer2003-KB2705219-x86-ENU.exe /quiet /norestart /n
HotFixes\MS12-054\WindowsServer2003-KB2712808-x86-ENU.exe /quiet /norestart /n

rem KB2661254 Update for minimum certificate key length
HotFixes\KB2661254\WindowsServer2003-KB2661254-x86-ENU.exe /quiet /norestart /n

rem KB2736233 Security Update for ActiveX Killbits 
HotFixes\KB2736233\WindowsServer2003-KB2736233-x86-ENU.exe /quiet /norestart /n

rem KB2749655 Compatibility issues affecting signed Microsoft binaries 
HotFixes\KB2749655\WindowsServer2003-KB2749655-x86-ENU.exe /quiet /norestart /n

HotFixes\MS12-072\WindowsServer2003-KB2698032-x86-ENU.exe /quiet /norestart /n

rem two patches are needed for MS12-078 one replaced
HotFixes\MS12-078\WindowsServer2003-KB2753842-v2-x86-ENU.exe /quiet /norestart /n

HotFixes\MS12-081\WindowsServer2003-KB2758857-x86-ENU.exe /quiet /norestart /n

HotFixes\MS12-082\WindowsServer2003-KB2770660-x86-ENU.exe /quiet /norestart /n

rem KB2748349 Corrupted files are found in backup data that is restored by using the Windows Volume Shadow Copy feature
HotFixes\KB2748349\WindowsServer2003-KB2748349-x86-ENU.exe /quiet /norestart /n

rem two patches are needed for MS13-002
HotFixes\MS13-002\msxml4-KB2758694-enu.exe /quiet /norestart /n
HotFixes\MS13-002\msxml6-KB2758696-enu-x86.exe /quiet /norestart /n

HotFixes\MS13-004\WindowsServer2003-KB2742604-x86-ENU.exe /quiet /norestart /n

rem KB2798897 Unauthorized digital certificates could allow spoofing
HotFixes\KB2798897\rvkroots.exe /Q

HotFixes\MS13-010\WindowsServer2003-KB2797052-x86-ENU.exe /quiet /norestart /n
rem try IE7 patch too in case IE7 is present
HotFixes\MS13-010\IE7-WindowsServer2003-KB2797052-x86-ENU.exe /quiet /norestart /n
rem try IE8 patch too in case IE8 is present
HotFixes\MS13-010\IE8-WindowsServer2003-KB2797052-x86-ENU.exe /quiet /norestart /n

HotFixes\MS13-011\WindowsServer2003-KB2780091-x86-ENU.exe /quiet /norestart /n

HotFixes\MS13-027\WindowsServer2003-KB2807986-x86-ENU.exe /quiet /norestart /n

HotFixes\MS13-028\WindowsServer2003-KB2817183-x86-ENU.exe /quiet /norestart /n
rem try IE7 patch too in case IE7 is present
HotFixes\MS13-028\IE7-WindowsServer2003-KB2817183-x86-ENU.exe /quiet /norestart /n
rem try IE8 patch too in case IE8 is present
HotFixes\MS13-028\IE8-WindowsServer2003-KB2817183-x86-ENU.exe /quiet /norestart /n

HotFixes\MS13-031\WindowsServer2003-KB2813170-x86-ENU.exe /quiet /norestart /n

HotFixes\MS13-033\WindowsServer2003-KB2820917-x86-ENU.exe /quiet /norestart /n

HotFixes\MS13-036\WindowsServer2003-KB2808735-x86-ENU.exe /quiet /norestart /n

echo All hotfixes have been installed.  Please Reboot the system.
pause



