2 Replies Latest reply on May 29, 2011 12:54 PM by sundar.8212

    How to Remove ePO Agent/Updater Unattended?

      Hello,

      This is my first post on the McAfee.  Our company is removing McAfee and I am responsible for making this happen.  I have created a batch file to hit multiple machines however it is not a fully unattended process.  As you may see I have repeated some steps as the McAfee has two different directories ("McAfee" and "Network Associates").  My problem lies with C:\Program Files\McAfee\Common Framework\frminst.exe" /remove=agent this command gives a prompt at the screen.  I need this to automatically say OK.  I have tried the /slient and that did not resolve the issue.  Any help greatly appreciated.

       

      Here is the batch:

       

      @ECHO OFF

      CLS

      :McAfee

      ECHO.

      ECHO  ******************************************************************************

      ECHO  *                        Uninstall McAfee Enterprise                         *

      ECHO  ******************************************************************************

      ECHO.

       

      IF EXIST "C:\Program Files\McAfee\VirusScan Enterprise\csscan.exe" (

      "C:\Program Files\McAfee\VirusScan Enterprise\csscan.exe" /UninstallMAS

      ) ELSE (

      ECHO csscan.exe is not installed

      )

       

      MsiExec.exe /qn /uninstall {35C03C04-3F1F-42C2-A989-A757EE691F65}

       

      GOTO epo

      :epo

      ECHO.

      ECHO  ******************************************************************************

      ECHO  *                       Remove ePO Agent if applicable                       *

      ECHO  ******************************************************************************

      ECHO.

       

      GOTO epo1

      :epo1

      ECHO - McAfee Directory

      IF EXIST "C:\Program Files\McAfee\Common Framework\framepkg.exe" (

      "C:\Program Files\McAfee\Common Framework\framepkg.exe" /remove=agent

      ) ELSE (

      ECHO.

      ECHO framepkg.exe not found.

      )

       

      GOTO epo2

      :epo2

      IF EXIST "C:\Program Files\McAfee\Common Framework\frminst.exe" (

      "C:\Program Files\McAfee\Common Framework\frminst.exe" /remove=agent

      ) ELSE (

      ECHO frminst.exe agent not found.

      )

       

      GOTO epo3

      :epo3

      IF EXIST "C:\Program Files\McAfee\Common Framework\frminst.exe" (

      "C:\Program Files\McAfee\Common Framework\frminst.exe" /remove=updater

      ) ELSE (

      ECHO frminst.exe updater not found.

      )

       

      GOTO epo4

      :epo4

      IF EXIST "C:\Program Files\McAfee\Common Framework\frminst.exe" (

      "C:\Program Files\McAfee\Common Framework\frminst.exe" /forceuninstall

      ) ELSE (

      ECHO frminst.exe not found.

      )

       

       

      GOTO epo5

      :epo5

      ECHO.

      ECHO - Network Associates Directory

      IF EXIST "C:\Program Files\Network Associates\Common Framework\framepkg.exe" (

      "C:\Program Files\Network Associates\Common Framework\framepkg.exe" /remove=agent

      ) ELSE (

      ECHO.

      ECHO framepkg.exe not found.

      )

       

      GOTO epo6

      :epo6

      IF EXIST "C:\Program Files\Network Associates\Common Framework\frminst.exe" (

      "C:\Program Files\Network Associates\Common Framework\frminst.exe" /remove=agent

      ) ELSE (

      ECHO frminst.exe agent not found.

      )

       

      GOTO epo7

      :epo7

      IF EXIST "C:\Program Files\Network Associates\Common Framework\frminst.exe" (

      "C:\Program Files\Network Associates\Common Framework\frminst.exe" /remove=updater

      ) ELSE (

      ECHO frminst.exe updater not found.

      )

       

      GOTO epo8

      :epo8

      IF EXIST "C:\Program Files\Network Associates\Common Framework\frminst.exe" (

      "C:\Program Files\Network Associates\Common Framework\frminst.exe" /forceuninstall

      ) ELSE (

      ECHO frminst.exe not found.

      )

       

       

      GOTO end

      :end

      ECHO DONE!

      EXIT