Fix High CPU Usage From Antimalware Service Exec
In this article
Yes, high CPU usage caused by Antimalware Service Exec (MsMpEng.exe) can be reduced by adjusting Windows Security settings, excluding specific files or folders, scheduling scans, or temporarily pausing real-time protection. This process helps balance system performance and security without disabling protection entirely. Before starting, ensure you are using a Windows 10 or Windows 11 device with Windows Security (Microsoft Defender) enabled, as these steps apply specifically to the built-in antivirus service.
What You'll Need
- Administrator access to your Windows PC
- Basic familiarity with Windows Settings and Control Panel
- A stable internet connection (for updates and verification)
Step-by-Step
- Open Windows Security by clicking the shield icon in the taskbar or by searching "Windows Security" in the Start menu. If prompted, allow the app to make changes.
- Navigate to "Virus & threat protection" > "Manage settings" under the "Virus & threat protection settings" section.
- Toggle off "Real-time protection" temporarily to stop high CPU usage. Note: Only leave this off briefly while adjusting settings; turn it back on afterward to maintain protection.
- Return to the main Windows Security window and go to "Virus & threat protection" > "Manage settings" > "Add or remove exclusions".
- Add exclusions for folders, file types, or processes that trigger frequent scanning. Common examples include large project folders (like video editing files), development environments (e.g., Node.js
node_modules), or virtual machines. Click "Add an exclusion" and select the type (folder, file, file type, or process). - To schedule scans and avoid peak usage times, go to "Virus & threat protection" > "Manage settings" > "Antivirus settings" > "Scan options". Choose "Custom" and schedule a daily or weekly scan during idle hours.
- Use the Task Scheduler to limit background scanning impact. Press Win + R, type "taskschd.msc", and press Enter. Navigate to Task Scheduler Library > Microsoft > Windows > Windows Defender. Right-click "Windows Defender Scheduled Scan" > Properties. Under the "Conditions" tab, check "Start the task only if the computer is idle for" and set a duration like 10 minutes. Also check "Stop if the computer ceases to be idle".
- Ensure Windows and Windows Defender are up to date. Go to Settings > Update & Security > Windows Update and install any pending updates. This includes definition updates that can improve scanning efficiency.
- Restart your computer after applying changes to ensure all settings take effect. Monitor CPU usage in Task Manager (Ctrl + Shift + Esc) under the "Details" tab by sorting by CPU usage to confirm MsMpEng.exe activity has decreased.
- Re-enable "Real-time protection" once exclusions and schedules are confirmed. Leaving it off long-term reduces security.
Common Mistakes
- Disabling real-time protection permanently, leaving the system vulnerable to threats.
- Adding too many exclusions without verifying legitimacy, which might allow malware to bypass scanning.
- Excluding entire drives (like C:\) instead of specific folders, greatly reducing protection coverage.
- Ignoring scheduled scan settings, leading to scans running during active usage hours.
- Overlooking Task Manager details and misidentifying the process causing high CPU (other services can mimic MsMpEng.exe behavior).
Tips
- Monitor CPU usage over time using Performance Monitor or Resource Monitor to distinguish normal scanning spikes from persistent high usage.
- Exclude only non-executable file types (like .mp4, .mkv, .iso) if they're frequently accessed and not likely to carry malware.
- Use the "Performance" tab in Windows Security to view current scanning load and recent full scans.
- Consider third-party antivirus alternatives if Windows Defender continues to cause performance issues, but only install from official sources.
- Regularly review exclusions to remove outdated or unnecessary entries.
Troubleshooting
If CPU usage remains high after applying changes, first restart your PC and check Task Manager again. If MsMpEng.exe still uses excessive resources, verify that no full scan is currently running—sometimes updates trigger one automatically. Cancel it via Windows Security > Virus & threat protection > Current threats > "Cancel scan" if active. If the issue persists, check for malware using a full offline scan: in Windows Security, go to "Virus & threat protection" > "Scan options" > "Microsoft Defender Offline scan" > "Scan now". This runs before Windows boots and can remove rootkits interfering with normal operation. If high CPU continues, reset Windows Defender: open Command Prompt as administrator and run "net stop windefend", then delete files in %ProgramData%\Microsoft\Windows Defender\Platform\<version>\ (backup first if needed), then run "net start windefend". This forces a clean start with updated definitions. If none of these work, consider system file corruption—run "sfc /scannow" in Command Prompt to repair Windows system files.
Frequently Asked Questions
Is Antimalware Service Exec a virus?
No, MsMpEng.exe is a legitimate part of Windows Security and not a virus. It scans files in real time to protect your system.
Can I disable Antimalware Service Exec completely?
You can temporarily disable real-time protection, but fully disabling it long-term is not recommended and leaves your system unprotected.
Why does it use so much CPU during scans?
It scans every file accessed in real time. Large files or frequent access (like editing videos) can cause temporary spikes. Scheduling scans helps reduce interference.
Will exclusions make my PC less secure?
Only if misconfigured. Exclude only trusted files and folders. Avoid excluding .exe, .dll, or downloaded files.
Does this affect cloud-delivered protection?
No, cloud protection remains active even with exclusions. It helps detect new threats based on file reputation.
Can third-party antivirus reduce this issue?
Yes, some third-party tools are less resource-intensive. If you install another, Windows Defender will automatically disable its real-time features.