Hello,
I want to uninstall McAfee antivirus on a domain controller. Windows
(I have access to the DC only in cli)
1 -I execute the following command directly on the workstation : C:\>McAfeeEndpointProductRemoval_22.2.0.31.exe --accepteula --ALL
2 - I create a deployment task that installs the removal with the command --accepteula --ALL or --accepteula --MA
3- I create a client task that I call later
all 3 solutions fail
Log in the EPO :
La tâche X à exécuter immédiatement a été reçue. | |
07/04/22 08:06:24 | La tâche à exécuter immédiatement a démarré. |
07/04/22 08:07:40 | La tâche X à exécuter immédiatement a échoué. Détails : Product "EPR_TOOL1000" installation failed, reason "Unknown error".. |
then Log in the Server :
2022-04-07 07:26:51 I #6840 ScrptExe Running "C:\ProgramData\McAfee\Agent\\Evaluation\EPR_TOOL1000\Install\0000\execute_epr.bat" --accepteula --MA
2022-04-07 07:26:51 I #6840 ScrptExe Running "C:\ProgramData\McAfee\Agent\\Evaluation\EPR_TOOL1000\Install\0000\execute_epr.bat" --accepteula --MA
2022-04-07 07:26:51 I #6840 ScrptExe Did not match searched path
2022-04-07 07:26:51 I #6840 ScrptExe Executing "C:\ProgramData\McAfee\Agent\\Evaluation\EPR_TOOL1000\Install\0000\execute_epr.bat" --accepteula --MA
2022-04-07 07:26:51 I #6840 ScrptExe Using Aac exclusion path C:\ProgramData\McAfee\Agent\\Evaluation\EPR_TOOL1000\Install\0000\execute_epr.bat
2022-04-07 07:26:54 I #6840 ScrptExe Executing section: [RebootNeeded]
2022-04-07 07:26:54 I #6840 ScrptExe Executing section: [CheckRebootNeededDuringInstall]
2022-04-07 07:26:54 I #6840 ScrptExe Executing section: [SendFailEvent]
2022-04-07 07:26:54 I #6840 ScrptMgr Une erreur s'est produite lors de l'installation de EPR_TOOL1000.
2022-04-07 07:26:54 I #6840 MueEep Invoking events withEventId " 0" Severity " 4" Productid " EPR_TOOL1000" Locale " 0000" UpdateType " Install" UpdateError " -1" iUpdateState " 9" New Version " 22.2.0.31" Date Time " " Script Id" 4627" Custom Message " "
2022-04-07 07:26:54 I #6840 MueEep Updating session state to 9
2022-04-07 07:26:54 I #6840 MueEep Updating final session state to 9
2022-04-07 07:26:54 I #6840 ScrptExe Executing section: [InstallProduct]
2022-04-07 07:26:54 I #6840 ScrptMgr Mise à jour terminée
Do you have an idea ? Is this a problem restarting the computer? (the DC can be restarted without problems and I restarted the PC manually but the problem is the same)
Thanks in advance
Solved! Go to Solution.
Hi @ThomasRTE ,
Removal tool is not supported on Windows Server CORE OS. For removing McAfee Agent in managed mode, could you please try using the below commands?
Kind Regards,
Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and give a Kudo, together we can help other members.
Hi @ThomasRTE ,
Thank you for posting in community forum. When you say you have access to only CLI version, does that mean it is Windows core server?
Also, have you tried to run a normal removal of the product using a removal task from ePO?
Kind Regards,
Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and give a Kudo, together we can help other members.
thanks for your reply
Yes it's a Windows core server
I want to use Removal Tool
otherwise deleting module by module does not allow deleting the agent. I want to completely remove the antivirus that should not have been installed
Hi @ThomasRTE ,
Removal tool is not supported on Windows Server CORE OS. For removing McAfee Agent in managed mode, could you please try using the below commands?
Kind Regards,
Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and give a Kudo, together we can help other members.
Thank you !!!
c:\Program Files\McAfee\Common Framework\x86\frminst.exe /forceuninstall worked well ! 🙂
the antivirus uninstalled fine but the McAfee directories on the DC remained. Is it possible to delete Antivirus without its entirety as well as all folders/directories ?
For example : \ProgramData\McAfee\... \ProgramFiles\McAfee\...
Hi @ThomasRTE
I am glad that the suggestion worked. To remove the directories created by ENS, I guess you may use the rmdir /s command to remove the directory including all nested folders and subdirectories.
For Ex: C:\Users\admin\Documents>rmdir /s Test_folder
Kindly note: Directories that are removed with rmdir command cannot be recovered.
Kind Regards,
Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and give a Kudo, together we can help other members.
Corporate Headquarters
6220 America Center Drive
San Jose, CA 95002 USA