VBScript for IE patches – MS08-078 / KB960714

This is a very simplistic VBscript I hacked together to help deploy the patches for MS08-078 / KB960714. In brief it checks the registry to see if Internet Explorer version 6 or 7 is installed and then runs the appropriate updater.

Things you should know:

  • Automatic updates will probably do this for you
  • The script does no error checking
  • It was tested on XPPro, running as an administrator, from a network public share
  • MS08-078 lists a bunch of switches you can use with the installers. The only one I’m using is “/passive”
  • You’ll need to download the installers from Microsoft and put the correct path in the code where you see \\SERVER\SHARE
  • If you use this script, you do so at your own risk. I take no responsibility for any damage to your computer, data, hairline, or anything else. This is intended as an example of something you could do, not something you should do. If you have any doubts don’t use it!


Set objShell = CreateObject("WScript.Shell")
strValue = objShell.RegRead("HKLM\Software\Microsoft\Internet Explorer\Version")
intVersion = CInt(Left(strValue, 1))
If intVersion = 7 Then
strCommand = "\\SERVER\SHARE\IE7-WindowsXP-KB960714-x86-enu.exe /passive"
objShell.Run strCommand, 1, True
Elseif intVersion = 6 Then
strCommand = "\\SERVER\SHARE\Windowsxp-KB960714-x86-enu.exe /passive"
objShell.Run strCommand, 1, True
End If

Leave a Reply