MsMpEng.exe, shown in Task Manager as Antimalware Service Executable, is the core process of Microsoft Defender Antivirus. Short CPU spikes while it scans are normal, but if it stays high you can let the scan finish, update Windows, add exclusions, move the scan schedule, or run repair tools to bring CPU usage back down.
This guide walks through the process in clear illustrated steps, from the first preparation to a finished result. Each step has its own picture, so you can compare your progress as you go.
How to use this guide
Work through the steps in order. Method 1 of 3 covers the basics, and the later methods offer alternatives and finishing touches. If you only have a minute, skim the Quick steps box above and come back for the details.
Related guides
- How to Plan a camping meal list
- How to Train for a day hike
- How to Prepare your home before a long trip
- How to Make a vinaigrette
- Browse all Windows Troubleshooting guides
- All 52runoob guides
Trusted external resources
- Microsoft Support — Virus and threat protection in the Windows Security app
- Microsoft Learn — Configure Microsoft Defender Antivirus exclusions
- Microsoft Learn — Troubleshoot Microsoft Defender Antivirus performance issues
- Microsoft Support — Stay protected with Windows Security
A note on sources
We check each guide against the official resources listed in References at the end of this article. External links open in a new tab; the related guides above stay on this site.
Quick steps
- Confirm the process sits in the Windows Defender folder under Program Files.
- Open Windows Security and let any running scan finish — restarting makes it start over.
- Restart the PC and install pending Windows updates.
- Add exclusions for Defender's own folder and the MsMpEng.exe process.
- Move the scheduled scan to a time you are not using the computer.
- Run SFC, DISM, and a second-opinion malware scan if CPU stays high.
Things you'll need
- A Windows 10 or Windows 11 PC with Microsoft Defender Antivirus
- Administrator access to change Defender settings and run repair commands
- An internet connection for Windows Update and definition downloads
- Optional: a free second-opinion scanner such as Malwarebytes
Step-by-step
Method 1 of 3: Confirm the Process and Let Scans Finish
Step 1: Open Task Manager
Press Ctrl+Shift+Esc, open the Processes tab, and find Antimalware Service Executable in the list of running processes.
Step 2: Verify the file location
Right-click the process, choose Open file location, and confirm it sits in the Windows Defender folder under Program Files — not somewhere unexpected.
Step 3: Check whether a scan is running
Open Windows Security, go to Virus & threat protection, and look for an active scan that could be driving the CPU up.
Step 4: Let the scan finish
Wait 5 to 10 minutes instead of rebooting, because restarting a scan midway makes Defender begin again from the start.
Step 5: Restart the computer
Restart Windows to clear stale caches and background data that may be keeping MsMpEng.exe busy.
Step 6: Install Windows updates
Open Settings, Windows Update, and install pending patches, since some Defender high-CPU bugs are fixed by updates.
Method 2 of 3: Reduce Defender's CPU Load
Step 7: Open Defender settings
In Windows Security choose Virus & threat protection, then Manage settings to reach the exclusions controls.
Step 8: Exclude Defender's own folder
Under Exclusions add C:\Program Files\Windows Defender as a folder so Defender does not scan its own files in a loop.
Step 9: Exclude the MsMpEng.exe process
Add an exclusion of type Process and enter MsMpEng.exe to reduce repeated self-scanning of the engine.
Step 10: Reschedule the scheduled scan
Open Task Scheduler, expand Microsoft > Windows > Windows Defender, and set the Scheduled Scan trigger to a time you are not using the PC.
Step 11: Move large files out of synced folders
Move big ISO or virtual disk files out of OneDrive-synced folders so Defender scans them faster.
Step 12: Remove conflicting antivirus software
Uninstall extra antivirus programs through Apps and Features, because two real-time scanners can push CPU usage up.
Method 3 of 3: Run Advanced Repairs
Step 13: Run a second-opinion malware scan
Use a free scanner such as Malwarebytes for a full scan to confirm the high-CPU process is Defender and not a disguised virus.
Step 14: Run the System File Checker
Open Command Prompt as administrator, type sfc /scannow, and press Enter to repair corrupted system files.
Step 15: Run the DISM repair
Type DISM /Online /Cleanup-Image /RestoreHealth and press Enter to fix the Windows component store.
Step 16: Record a Defender performance report
In an administrator PowerShell run New-MpPerformanceRecording, reproduce the spike, then use Get-MpPerformanceReport to find the problem files.
Step 17: Reset the Windows Security app
Run Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage to reset a misbehaving Security app, then restart.
Step 18: Turn protection back on and monitor
Re-enable real-time protection and watch Task Manager for a few minutes to confirm CPU usage has returned to normal.
Tips
- A short burst of high CPU during a scan is normal — give it 5 to 10 minutes before changing anything.
- Exclusions reduce protection, so exclude only Defender's own files, not folders like Downloads.
- Defender turns real-time protection back on by itself shortly after you pause it.
Warnings
- Malware can use the name 'Antimalware Service Executable' to hide — verify the file location before trusting it.
- Do not permanently disable Microsoft Defender; if you add another antivirus, uninstall the extra one instead.
- Back up important files before running repair commands or resetting apps.
Frequently asked questions
What is MsMpEng.exe and is it a virus?
MsMpEng.exe is the Microsoft Malware Protection Engine, shown in Task Manager as Antimalware Service Executable. It is the background process of Microsoft Defender Antivirus, not a virus. To be sure, right-click it in Task Manager and choose Open file location: the real file lives in C:\Program Files\Windows Defender. If it is found anywhere else, run a second-opinion malware scan.
Is it safe to disable or exclude MsMpEng.exe?
Disabling Microsoft Defender permanently is not recommended because it leaves your PC unprotected; Windows also turns real-time protection back on automatically. Excluding Defender's own folder (C:\Program Files\Windows Defender) and the MsMpEng.exe process is a safe, targeted way to stop self-scanning loops. Avoid excluding broad folders such as Downloads or your user folder, because that reduces protection.
How long does high CPU from MsMpEng.exe usually last?
During a full or scheduled scan, high CPU for 5 to 30 minutes is normal and usually drops once the scan finishes. If usage stays near 100% for hours, update Windows, add the recommended exclusions, move the scan schedule, and run SFC and DISM. A performance recording can show which files are slowing the scan down.
Can I end the Antimalware Service Executable process in Task Manager?
You can end it temporarily, but Windows will restart it and the next scan begins from the beginning, so this rarely fixes anything. It is better to let the current scan complete, then reduce future load with exclusions and a better scan schedule instead of forcibly stopping the process.
References
- Microsoft Support — Virus and threat protection in the Windows Security app. https://support.microsoft.com/en-us/windows/virus-and-threat-protection-in-the-windows-security-app-1362f4cd-d71a-b52a-0b66-c2820032b65e
- Microsoft Learn — Configure Microsoft Defender Antivirus exclusions. https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/configure-exclusions-microsoft-defender-antivirus
- Microsoft Learn — Troubleshoot Microsoft Defender Antivirus performance issues. https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/troubleshoot-microsoft-defender-antivirus
- Microsoft Support — Stay protected with Windows Security. https://support.microsoft.com/en-us/windows/stay-protected-with-windows-security-2bd36cd9-f3f8-4d3d-a0d3-27b18b9d5f7c
- wikiHow — How to Fix MsMpEng.exe (Antimalware Service Executable) High CPU. https://www.wikihow.com/Antimalware-Service-Executable-High-Cpu
Every guide is reviewed against its sources. See our editorial policy.
Reader comments
0 so farFinished this guide? Tell other readers what worked, what didn't, and what you would change.