rbangelAs we're just beginning to deploy Kaseya, and have been a McAfee shop for quite a while, I had to find out how to automate/script McAfee removal to take advantage of KES/AVG. Necessity and all... Anyway, did a little research on McAfee's website and found the msiexec.exe command, and created the following script. Runs silent, the McAfee icon disappears from the tray, registry keys are removed, files removed from the Program Files folder, however note that it doesn't remove the McAfee Framework Service. The other McAfee services get removed upon next reboot. Will work on one to get rid of Framework. Since 98% of our customer base that runs McAfee uses 8.5i, I wasn't inclined to change this to accomodate all three versions of 8.xi, but I suppose if I changed the IF to just check for the existence of the Uninstall Command key, have three steps for uninstallation (one for each version) and check the continue if script fails box on the first two, that might work. Also attached is a .zip file of the script. Script Name: McAfee 8.5i Uninstall Script Description: Uninstalls McAfee Viruscan Enterprise 8.5i Command to uninstall 8.7i: msiexec /x {147BCE03-C0F1-4C9F-8157-6A89B6D2D973} REMOVE=ALL REBOOT=R /q Command to uninstall 8.0i: msiexec.exe /x {5DF3D1BB-894E-4DCD-8275-159AC9829B43} REMOVE=ALL REBOOT=R /q IF Check Registry Value Parameter 1 : HKEY_LOCAL_MACHINE\SOFTWARE\McAfee\ePolicy Orchestrator\Application Plugins\VIRUSCAN8600\Uninstall Command = :msiexec /x {35C03C04-3F1F-42C2-A989-A757EE691F65} REMOVE=ALL REBOOT=R /q THEN Execute Shell Command Parameter 1 : msiexec /x {35C03C04-3F1F-42C2-A989-A757EE691F65} REMOVE=ALL REBOOT=R /q Parameter 2 : 1 OS Type : 13 Write Script Log Entry Parameter 1 : McAfee 8.5i uninstalled OS Type : 13 ELSE Write Script Log Entry Parameter 1 : McAfee 8.5i not installed on this machine OS Type : 13
LmhansenWhat version of McAfee are you looking to remove?