Link to home
Start Free TrialLog in
Avatar of hnssysadmin
hnssysadmin

asked on

How to use msiexec to remove McAfee SAAS 5.2 across domain with login script

Hello experts.

I am hoping to use group policy to write a login script that uses msiexec /x to remove mcafee Virus and spyware protection server version 5.2.1.114.  I have not had any luck via the GUID of the application or the product name on my test machine with this method.  I was wondering if anyone could help with writing the login script that will completely remove the mcafee product SAAS.  Mcafee also offers a utility that is called MVSUninst.exe which does a great job of pulling the product out as well.  So if it is not possible to use msiexec with this installation than perhaps someone could help write a script so that domain users at login will have this program removed.  

We are using XP pro clients with Server 2003 enterprise r2 installed on the servers.
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hnssysadmin
hnssysadmin

ASKER

Thanks for that comment gheist.  I will try it on my test machine and see what remnants are left.  
I am a liitle curious to see how this handles the suite without security center.  We are using Security as a Service or what had been called Total Protection prior to the 5.1? upgrade.  This tool was available via the Eset website for removal tools as well, and it did leave quite a few registry keys associated with the MVS user when I tried it on one of the test machines.  Anyway I will give it a shot.

Any ideas on how to automate the use of this tool with a script?  
It perfectly removes all trails of mcafee products to enable a new installation.
Thanks for that update Gheist.

Just to clarify.  This removes the remnants of McAfee products to allow a new installation of another product?  Or is it just to allow a reinstall of McAfee?  
Also any ideas on how to script the use of that product?
It displays only one dialog in the end.
You can use autoit to click there. Otherwise there is no interaction ot help text.
Say you first uninstall with msiexec /x and then allow to reboot and add RunOnce to newborn autoit script.
that sounds promising what is an autoit script?
autoit is a program that records keyboard/mouse input for reuse.
I like the utility mvsunst.exe that McAfee provides over the MCPR utility for removal.  The plan is to write a login script that I will trigger to utilitze the value found in the registry key: HKLM\Software\Microsoft\Windows\Current Version\Uninstall\
I searched for MVS or McAfee in that key and found this:
C:\PROGRA~1\McAfee\MANAGE~1\Agent\myinx /Script=C:\PROGRA~1\McAfee\MANAGE~1\VScan\vsasap.inx /Section=DefaultUninstall /quiet
save that as a command or batch and setup a GPO based login script that you can enable when ready.  Make sure to include synchronous processing: Computer Configuration\Administrative Templates\System\Logon\ "Always wait for the network at computer startup and logon"  in that GPO.  I plan on then placing the mvsuninst.exe utility at a central location on the network and will write a script to run that utility at logoff.  Then will trigger a mass restart in the network using shutdown.exe -i or another option.  This is not ideal as all the log files for that mvsunist utility will be dumped into that central location and it will be a pain to sift through those logs to see what occurred on problem machines.  As for installing ESET there are several tools to mass deploy and the install file is a .msi so can be deployed via group policy with a .xml file in place to direct the installation options.  
please read through this thread if you are interested to form your own solution
MCPR cleans all trails of mcafee, should the previous step fail (it sometimes does if some computer has trails of very old versions of mcafee av)