How to Completely Uninstall McAfee (Trellix / McAfee Corp) & Remove Kernel Drivers
Decommissioning McAfee (Trellix / McAfee Corp) requires more than running the standard Windows Programs and Features applet. Endpoint security suites integrate deep kernel minifilter drivers, WFP callouts, and early-launch anti-malware (ELAM) hooks designed to resist uninstallation. Follow this step-by-step engineering runbook to completely eradicate lingering files, drivers, and services.
- Disable active Tamper Protection / Self-Defense in product settings.
- Boot into Windows Safe Mode:
bcdedit /set {current} safeboot minimal. - Execute McAfee Consumer Product Removal Tool (MCPR.exe) or manual driver unloader.
- Verify Filter Manager attachments via
fltmc filters. - Clean WMI registration using PowerShell
Remove-CimInstance.
Step 1: Disable Kernel Tamper Protection & Self-Defense
McAfee (Trellix / McAfee Corp) implements a kernel self-protection driver (such as mfehidk.sys) that intercepts and denies API termination calls, registry deletion requests, and driver unloading even from administrative accounts. To disable this barrier:
- Open the McAfee (Trellix / McAfee Corp) main desktop user interface.
- Navigate to Settings > Troubleshooting > General.
- Locate "Enable Self-Defense" or "Tamper Protection" and uncheck the toggle.
- If the UI is non-responsive or corrupted, force Windows to boot into Safe Mode where third-party kernel drivers are suppressed:
bcdedit /set {current} safeboot minimal shutdown /r /t 0
Step 2: Execute Official Removal Utility in Safe Mode
Once booted into Safe Mode, execute the vendor-engineered deep cleanup package McAfee Consumer Product Removal Tool (MCPR.exe). This tool performs the following automated routines:
- Releases active file handles on
%SystemRoot%\System32\drivers\mfehidk.sys. - Deregisters the Early Launch Anti-Malware (ELAM) hive in
HKLM\ELAM. - Removes background service registrations for
mfevtp,mcshield,McAPExe,mfemms,McAfee Core Validation Service.
Step 3: Manually Unload Lingering Minifilter Drivers
If manual inspection indicates that McAfee (Trellix / McAfee Corp) drivers survived the uninstallation, use the Windows Filter Manager utility (fltmc.exe):
# Query active minifilter drivers and altitude numbers
fltmc filters
# Detach McAfee (Trellix / McAfee Corp) driver from file system stack
fltmc unload mfehidk
# Confirm detachment
fltmc instances
Step 4: Purge WMI SecurityCenter2 Registration Remnants
Prevent Windows Defender from falsely displaying that McAfee (Trellix / McAfee Corp) is actively protecting the machine:
# Elevated PowerShell command:
$orphan = Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct | Where-Object { $_.displayName -match "McAfee|mcafee" }
if ($orphan) {
Remove-CimInstance -InputObject $orphan
Write-Host "Orphaned WMI registration removed."
}
Step 5: Clean Registry Keys and Restore Normal Boot
Prune orphaned configuration keys from the registry and reset Windows boot configuration:
# Elevated command prompt
reg delete "HKLM\SOFTWARE\McAfee" /f
bcdedit /deletevalue {current} safeboot
shutdown /r /t 0
Next Steps & Financial Security
Once the local endpoint is clean, remember that uninstallation does not cancel your recurring billing agreement. Review our companion guides: