Last active
November 24, 2025 20:33
-
-
Save ericjsilva/d1e2a90506ce3867ee21ae91b88e7472 to your computer and use it in GitHub Desktop.
Script to fully remove McAfee Endpoint Security from macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "Uninstalling McAfee Endpoint Security..." | |
| echo "Stopping all services..." | |
| 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 ‘{}’ | |
| echo "Uninstalling ATP..." | |
| sudo /usr/local/McAfee/uninstall ATP | |
| echo "Uninstalling ThreatPrevention and Firewall..." | |
| sudo /usr/local/McAfee/uninstall ThreatPrevention Firewall module | |
| echo "Uninstalling Endpoint Security..." | |
| sudo /usr/local/McAfee/uninstall EPM | |
| echo "Uninstalling McAfee Agent Services..." | |
| sudo /Library/McAfee/cma/scripts/uninstall.sh | |
| echo "Unloading Launch Agents..." | |
| launchctl unload -F /Library/LaunchAgents/com.mcafee.* | |
| echo "Remove McAfee VShield Services and Menulet..." | |
| sudo rm -rf /usr/local/McAfee | |
| sudo rm -rf /Library/Application\ Support/McAfee |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
McAfee Endpoint Security for Mac full version standalone offline installer. It is an endpoint protection suite that emphasizes integration.
McAfee Endpoint Security For Mac