Kaseya Community

uninstall procedure McAfee Software version 8.6.0 Windows

  • This will silent uninstall McAfee Software Version 8.6.0 on Windows, since those other versions did not work for me. These are just the shell commands that work for me.

     

    <?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="Mcafee 8.6.0 Windows uninstall" treePres="3" id="330322820">

        <Body description="">

          <Statement description="Execute the given command as if it were typed in at a command prompt." name="ExecuteShellCommand" continueOnFail="true" osType="XP">

            <Parameter xsi:type="StringParameter" name="Command" value="msiexec /x {35C03C04-3F1F-42C2-A989-A757EE691F65} REMOVE=ALL REBOOT=R /q" />

            <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />

            <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />

          </Statement>

          <Statement description="Execute the given command as if it were typed in at a command prompt." name="ExecuteShellCommand" continueOnFail="true" osType="XP">

            <Parameter xsi:type="StringParameter" name="Command" value="C:\Program Files\McAfee\VirusScan Enterprise\scan32.exe&quot; /UninstallMAS" />

            <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />

            <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />

          </Statement>

          <Statement description="Execute the given command as if it were typed in at a command prompt." name="ExecuteShellCommand" continueOnFail="true" osType="XP">

            <Parameter xsi:type="StringParameter" name="Command" value="C:\Program Files\Network Associates\Common Framework\frminst.exe&quot; /Remove=Agent /Silent" />

            <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />

            <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />

          </Statement>

          <Statement description="Execute the given command as if it were typed in at a command prompt." name="ExecuteShellCommand" continueOnFail="true" osType="XP">

            <Parameter xsi:type="StringParameter" name="Command" value="C:\PROGRA~1\NETWOR~1\MCAFEE~1\McAfeefire.exe SilentUninstall" />

            <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />

            <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />

          </Statement>

          <Statement description="Execute the given command as if it were typed in at a command prompt." name="ExecuteShellCommand" continueOnFail="true" osType="XP">

            <Parameter xsi:type="StringParameter" name="Command" value="C:\Documents and Settings\All Users\Application Data\Network Associates\Common Framework\Current\SITEADV_1500\Install\0409\saeuninstall.exe" />

            <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />

            <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />

          </Statement>

        </Body>

      </Procedure>

    </ScriptExport>

  • Hi Jack;

    Thanks for sharing.

    When posting your script code use notepad and start with (code) and end with (/code) using square brackets [ ] instead of the ( ) normal ones. Put your code between these HTML type commands to create a code window and then you copy and paste it into the forums using the Rich Text Formatting option. Then you should get something like this;


    my code here

    If you don't do it in a simple text editor like notepad the forum's editor will try and format it for you.

     

  • Just a few tips I found while uninstalling McAfee AV client using Kaseya scripts

    Note that this command;

    msiexec /x {35C03C04-3F1F-42C2-A989-A757EE691F65} REMOVE=ALL REBOOT=R /q

    might not work as this GUID/Software ID/Product Code "{35C03C04-3F1F-42C2-A989-A757EE691F65}" can change some times between major and minor versions. To make it work for the majority of the installs you want to find this Product Code and put it in a variable instead of hard coding it into your script. Symantec  AV, NOD32 and Adobe Reader has theirs in the applications registry key under HKLM\SOFTWARE\(Application Name) or HKLM\SOFTWARE\Wow6432Node\(Application Name).

    You could also use WMI to enumerate the Product Code by the applications name, there are plenty samples of VBscript code floating on the internet that can help you with this.

    Something else I found is that there is a registry key that you might need to modify in the event that the McAfee AV client is password protected or else the uninstall will fail.

    Hope you can make use of what I have learned :D