Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disable McAffee Endpoint Protection OSX

method 1

sudo /usr/local/McAfee/AntiMalware/VSControl stopoas

alternatively

sudo defaults write /Library/Preferences/com.mcafee.ssm.antimalware.plist OAS_Enable -bool False
sudo /usr/local/McAfee/AntiMalware/VSControl stop
sudo /usr/local/McAfee/AntiMalware/VSControl reload

Or completely uninstall:

sudo -s
cd /usr/local/McAfee/
./uninstall EPM
@mathiasrw

This comment has been minimized.

Copy link

@mathiasrw mathiasrw commented Aug 4, 2016

THANK YOU !!!

@nowells

This comment has been minimized.

Copy link

@nowells nowells commented Dec 15, 2016

This is fantastic. Really helps to run this before I run benchmarks.

@clattems

This comment has been minimized.

Copy link

@clattems clattems commented Jan 26, 2017

Thank you so much for this! :) You're my hero lol

@Tv8

This comment has been minimized.

Copy link

@Tv8 Tv8 commented Mar 3, 2017

That was a great help. Thank you 👍

@Murali54

This comment has been minimized.

Copy link

@Murali54 Murali54 commented Jun 7, 2017

Thank you!

@at88mph

This comment has been minimized.

Copy link

@at88mph at88mph commented Jul 14, 2017

This is great, thanks. The stop works, but can you think of a reason the ./uninstall EPM script would hang? This is McAfee 2.2.

@NickWarrior

This comment has been minimized.

Copy link

@NickWarrior NickWarrior commented Jul 28, 2017

Good Job!

@5ay3h

This comment has been minimized.

Copy link

@5ay3h 5ay3h commented Jul 30, 2017

@tegansnyder, fix for "completely uninstall": sudo /Library/McAfee/cma/scripts/uninstall.sh (source)

@joshoohaah

This comment has been minimized.

Copy link

@joshoohaah joshoohaah commented Jan 18, 2018

This came up again in my google search..and it indeed worked on macOS 10.12.16. Many thanks

@simplymarcello

This comment has been minimized.

Copy link

@simplymarcello simplymarcello commented Feb 17, 2018

Just what I needed! Thanks

@hari-haran

This comment has been minimized.

Copy link

@hari-haran hari-haran commented Mar 14, 2018

Thank you!

@smarkars

This comment has been minimized.

Copy link

@smarkars smarkars commented Aug 23, 2018

Perfect! Thanks!

image

@mqharrisa

This comment has been minimized.

@mrvincenzo

This comment has been minimized.

Copy link

@mrvincenzo mrvincenzo commented Dec 23, 2018

Few more tricks. I had to run each of them twice.

To disable Firewall

sudo /usr/local/McAfee/StatefulFirewall/bin/StatefullFirewallControl stop

To disable WebProtection

sudo /usr/local/McAfee/WebProtection/bin/WPControl stop
@devofer

This comment has been minimized.

Copy link

@devofer devofer commented Dec 27, 2018

Thank you!!

@benmingli

This comment has been minimized.

Copy link

@benmingli benmingli commented Jan 7, 2019

Love it... although

@miguel-orange

This comment has been minimized.

Copy link

@miguel-orange miguel-orange commented Feb 8, 2019

Thank you so much!

@Yorkshireman

This comment has been minimized.

Copy link

@Yorkshireman Yorkshireman commented May 3, 2019

Thank the lord - this was driving me insane. My system is Sierra 10.12.6

@bkbiggs

This comment has been minimized.

Copy link

@bkbiggs bkbiggs commented May 14, 2019

Thank you all!

@trinitronx

This comment has been minimized.

Copy link

@trinitronx trinitronx commented Jun 27, 2019

McAfee on our team's company managed Macbook laptops suddenly start using > 100% RAM on our machines, causing swapping, applications to freeze and eventually complete machine lockup. It's been a huge productivity killer.

Ran everything except the last uninstall command, lest this is not allowed, but the McAfee processes keep respawning! It's like the anti-virus software is acting like a virus in and of itself?! Then it's only a matter of time until they eat up all the machine's resources again.

It appears that there are also:

  • LaunchDaemons
  • LaunchAgents
  • Kernel extensions (Mac's version of kernel modules)

The first thing restarted seems to be a kernel module called com.McAfee.FMPSysCore.

Running these commands frequently in a loop shows that it's the first thing that comes back:

sudo ps auxww | grep -i 'VShieldScanner\|VShieldScanManager\|masvc\|McAfee' | grep -v grep   | awk '{ print $2 }'  | sudo xargs kill -9     ;   kextstat  | grep -i mcafee | awk '{ print $6 }'  | sudo xargs -n1 -I{} kextunload -verbose 2 -bundle-id '{}'

I still haven't found a way to 100% disable them, and don't want to resort to full uninstall yet... still waiting on helpdesk ticket to see what they say.

@strugs

This comment has been minimized.

Copy link

@strugs strugs commented Oct 25, 2019

Thank you very much!
McAfee Endpoint Security for Mac Threat Protection v10.2.3 on macOS 10.14.6 drove my startup time to a near standstill. Disabling Threat Protection has made startup snappy once again.

The 'alternatively' commands above did the trick.

Thank you again!
Andrew.

@linuxtechie

This comment has been minimized.

Copy link

@linuxtechie linuxtechie commented Apr 30, 2020

Thank U
Thank U
Thank U!

My insanity has been restored!

image

@jeanraymonddaher

This comment has been minimized.

Copy link

@jeanraymonddaher jeanraymonddaher commented Jul 27, 2020

thank you very useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.