Kaseya Community

Microsoft Security Advisory (981374)

  • This procedure is a direct response to Microsoft Security Advisory 981374. Until there are a patch released from Microsoft any user running IE6 or IE7 are in deep water. Microsoft released a couple och temporairy fixes, something they call MS Fix it. But these MSI packages are not distributed via Windows Update. Read more here: http://www.microsoft.com/technet/security/advisory/981374.mspx Copy the script below:

    <?xml version="1.0" encoding="utf-8"?>
    <ScriptExport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.kaseya.com/vsa/2008/12/Scripting">
      <Procedure name="Microsoft Security Advisory (981374)" treePres="3">
        <Body description="Description: MS Fix it MSI package for the security issues stated in Microsoft Security Advisory (981374).&#xA;&#xA;Dependencies: None apart from the supported Operating systems in the MS Security Advisory: http://www.microsoft.com/technet/security/advisory/981374.mspx&#xA;&#xA;Usage: Run at any given time. During the process IE will be closed without any warning to the end user.&#xA;&#xA;Script maintainer: ronny [at] upstream.se&#xA;Support: This script is delivered &quot;as is&quot;. No support included.">
          <If description="Check the verion of Internet Explorer.">
            <Condition name="CheckRegistryValue">
              <Parameter xsi:type="StringParameter" name="RegistryPath" value="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\version" />
              <Parameter xsi:type="EnumParameter" name="Condition" value="LessThan" />
              <Parameter xsi:type="StringParameter" name="Value" value="8" />
            </Condition>
            <Then>
              <Statement description="Get the MS Fix it from Microsoft web site." name="GetURL" continueOnFail="false" osType="XP">
                <Parameter xsi:type="StringParameter" name="URL" value="http://support.microsoft.com/kb/981374" />
                <Parameter xsi:type="StringParameter" name="ResponseFileName" value="#vAgentConfiguration.agentTempDir#\50386.msi" />
                <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />
              </Statement>
              <Statement description="Get the MS Fix it from Microsoft web site." name="GetURL" continueOnFail="false" osType="2003">
                <Parameter xsi:type="StringParameter" name="URL" value="http://support.microsoft.com/kb/981374" />
                <Parameter xsi:type="StringParameter" name="ResponseFileName" value="#vAgentConfiguration.agentTempDir#\50386.msi" />
                <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />
              </Statement>
              <Statement description="Get the MS Fix it from Microsoft web site." name="GetURL" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="URL" value="http://go.microsoft.com/?linkid=9668626" />
                <Parameter xsi:type="StringParameter" name="ResponseFileName" value="#vAgentConfiguration.agentTempDir#\50285.msi" />
                <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />
              </Statement>
              <If description="If Internet Explorer is running, kill it.">
                <Condition name="ApplicationRunning">
                  <Parameter xsi:type="StringParameter" name="ApplicationName" value="iexplore" />
                </Condition>
                <Then>
                  <Statement description="" name="CloseApplication" continueOnFail="true" osType="NT4|2000|XP|2003|Vista|2008">
                    <Parameter xsi:type="StringParameter" name="ApplicationName" value="iexplore.exe" />
                  </Statement>
                </Then>
              </If>
              <Statement description="Install MS Fix it MSI package." name="ExecuteShellCommand" continueOnFail="false" osType="2003">
                <Parameter xsi:type="StringParameter" name="Command" value="msiexec /i #vAgentConfiguration.agentTempDir#\50386.msi /qn" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
              <Statement description="Install MS Fix it MSI package." name="ExecuteShellCommand" continueOnFail="false" osType="XP">
                <Parameter xsi:type="StringParameter" name="Command" value="msiexec /i #vAgentConfiguration.agentTempDir#\50386.msi /qn" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
              <Statement description="" name="PauseScript" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="IntegerParameter" name="Seconds" value="120" />
              </Statement>
              <Statement description="Install MS Fix it MSI package." name="ExecuteShellCommand" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Command" value="msiexec /i #vAgentConfiguration.agentTempDir#\50285.msi /qn" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
              <Statement description="Pasue the procedure for the above installation to complete." name="PauseScript" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="IntegerParameter" name="Seconds" value="120" />
              </Statement>
              <Statement description="" name="DeleteFile" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.agentTempDir#\50386.msi" />
              </Statement>
              <Statement description="" name="DeleteFile" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.agentTempDir#\50386.msi" />
              </Statement>
              <Statement description="" name="WriteScriptLogEntry" continueOnFail="false">
                <Parameter xsi:type="StringParameter" name="Comment" value="Microsoft Security Advisory (981374) deployed." />
              </Statement>
            </Then>
          </If>
        </Body>
      </Procedure>
    </ScriptExport>


    Legacy Forum Name: Microsoft Security Advisory (981374),
    Legacy Posted By Username: eron



    [edited by: Brendan Cosgrove at 12:59 PM (GMT -8) on 12-13-2010] .
  • Love ya, Ronny Smile

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: Benjamin.Lavalley@kaseya.com
  • For all of us old timers

    Script Name: Apply Microsoft Security Advisory (981374) IE
    Script Description: MS Fix it MSI package for the security issues stated in Microsoft Security Advisory (981374). http://www.microsoft.com/technet/security/advisory/981374.mspx Usage: Run at any given time. During the process IE will be closed without any warning to the end user.

    IF Check Registry Value
    Parameter 1 : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Version
    Not Contains :8.0
    THEN
    Get URL
    Parameter 1 : http://go.microsoft.com/?linkid=9668626
    Parameter 2 : #vAgentConfiguration.agentTempDir#\50386.msi
    Parameter 3 : 3
    OS Type : 1
    Close Application
    Parameter 1 : iexplore.exe
    OS Type : 1
    Execute Shell Command
    Parameter 1 : msiexec /i #vAgentConfiguration.agentTempDir#\50386.msi /qn
    Parameter 2 : 1
    OS Type : 1
    Pause Script
    Parameter 1 : 120
    OS Type : 1
    Delete File
    Parameter 1 : #vAgentConfiguration.agentTempDir#\50386.msi
    OS Type : 1
    Write Script Log Entry
    Parameter 1 : Microsoft Security Advisory (981374) deployed
    OS Type : 1
    ELSE

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: mmartin