Antimalware Service Executable is MsMpEng.exe, the Microsoft Defender Antivirus process (the app calls it Windows Security). It is safe, and you should not end it. When it eats your CPU, the cause is usually a scan after an update, big files in a synced folder, or a second antivirus on the same PC. In this guide, I’ll show how to find what Defender is busy with, then change the one setting that fits, without turning protection off.

Most guides online jump straight to disabling it. I would not. Microsoft ships a performance analyzer for exactly this problem, and it tells you which file or folder is costing the time. Measure first, then fix.
What Is Antimalware Service Executable?
Task Manager uses this name for MsMpEng.exe, the engine of Microsoft Defender Antivirus (older guides call it Windows Defender). The Microsoft Defender Antivirus service (WinDefend) starts it with Windows, so it is always running. It handles the real-time protection, the scheduled scans and the scan that follows a security intelligence (definition) update.
So seeing it in Task Manager is normal on every Windows 10/11 PC. Only a long, repeated spike is a problem.
When High CPU Is Normal
High CPU from Antimalware Service Executable is expected in these cases, so give it 10 to 15 minutes before you change anything:
- After a security intelligence update. Microsoft lists the scan after an update as a known cause of high CPU.
- The first full scan on a new PC, or after a big Windows update.
- Copying, unzipping or installing something large, because Defender checks the files as they arrive.
If the CPU is still high after that, or it spikes at every login, read on.
Is It the Real Process or a Virus?
Is Antimalware Service Executable a virus? The genuine file is not. Malware that copies the name is rare, but the check takes a minute.
- Press Ctrl+Shift+Esc, right-click Antimalware Service Executable (Microsoft Defender Antimalware Service) and choose Go to details.
- Right-click MsMpEng.exe and choose Open file location.
- The folder should be a numbered version folder under C:\ProgramData\Microsoft\Windows Defender\Platform (on older installs, C:\Program Files\Windows Defender).
- Right-click the file, open Properties and check Digital Signatures for Microsoft.

If the file runs from Downloads, Temp or AppData, it is not Defender. Run a full scan from Windows Security and get a second opinion from another scanner before you do anything else.
Find What Defender Is Scanning
This is the step the other guides skip. The performance analyzer records Defender’s scans and then ranks files, folders and processes by the time Defender spent on them. It needs Defender platform 4.18.2108.7 or later, PowerShell 5.1 or 7.x, and works on Windows 10, Windows 11 and Server 2016 or later. Microsoft documents the analyzer and the steps below follow it.
Step 1. Create a C:\Temp folder, then open PowerShell as administrator.
Step 2. Start the recording:
New-MpPerformanceRecording -RecordTo C:\Temp\defender.etlStep 3. Do whatever makes the PC slow: copy the big folder, unzip the archive, open the project. When the fan spins up, go back to PowerShell and press Enter to stop and save.
Step 4. Read the recording:
Get-MpPerformanceReport -Path C:\Temp\defender.etl -TopFiles 10 -TopPaths 5If PowerShell says Windows Performance Recorder is already recording, clear the old trace and start again:
wpr -cancel -instancename MSFT_MpPerformanceRecordingThe results are sorted by duration, so the first rows are where Defender spent most of its time. Microsoft’s own example is -TopFiles 3 -TopScansPerFile 10, which gives the ten longest scans for each of the three worst files. The report also shows how many scans ran, the total, average and longest duration, the path, the process and the reason for the scan. -TopPaths groups the scans by folder, three levels deep by default (so C:\Users\Foo counts as one group). The full list of options is on the analyzer reference page.
Now match what you see to a fix:
- A path inside OneDrive, Desktop or Documents with big .iso or .vhdx files: fix 3.
- A folder you trust and use every day (VMs, dev projects): fix 4.
- Scans spread over everything, nothing standing out: fixes 1 and 2.
- Processes or folders of another security product: fix 5.
Fixes in Order of Safety
1) Lower the Windows Defender CPU Limit
By default a scan may use up to 50 percent CPU. Microsoft says you can lower it to 20 or 30, and the scan then takes longer. First note what your PC has now:
Get-MpPreference | Select-Object ScanAvgCPULoadFactor, EnableLowCpuPriority, ScanOnlyIfIdleEnabledThen set the new limit (run PowerShell as administrator):
Set-MpPreference -ScanAvgCPULoadFactor 30The valid range is 5 to 100. Do not use 0, because that switches CPU throttling off. Microsoft’s scan settings page says the value is guidance for the scan engine to stay under on average, not a hard limit. It applies to scheduled scans. Manual scans ignore it, so a Quick scan you start yourself still runs without a CPU limit.
The Microsoft pages I read cover this setting in PowerShell and Group Policy only, not in the Windows Security app. On Windows 11 Pro, the Group Policy path is Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Scan. The setting there starts with ‘Specify the maximum percentage of CPU’.

To go back, run the same command with 50.
There is a second setting in the same area, low CPU priority, which lowers the scan thread priority from 9 to 8 for scheduled scans. The PowerShell page lists it as on by default, but the Group Policy page lists it as Disabled when not configured, so read your own value from the command above. To switch it on:
Set-MpPreference -EnableLowCpuPriority $true2) Keep Scans to Idle Time
Scheduled scans only start when the PC is on but not in use, and the overall CPU must be under 80 percent. That is the default. If someone changed it, put it back:
Set-MpPreference -ScanOnlyIfIdleEnabled $trueTo move the daily quick scan to a time you are away from the desk, for example lunch:
Set-MpPreference -ScanScheduleQuickScanTime 13:00:00 -ScanScheduleOffset 0 -RandomizeScheduleTaskTimes $falseBy default the start time is also randomized by up to 30 minutes, which is why I added the last two parts. Microsoft’s example for this command also contains -ScanOnlyIfIdleEnabled $false. Leave that out, it makes the scan run while you are working.
You can see the task in Task Scheduler Library > Microsoft > Windows > Windows Defender > Windows Defender Scheduled Scan. Look at it, but do not bother editing it. Many guides tell you to untick the Conditions options there. The Microsoft Q&A answers I found say Windows triggers this task through automatic maintenance, so the settings above are the right place to change it.
3) Move Big ISO, VHDX and VM Files Out of Synced Folders
Microsoft lists large .iso and .vhdx files in a profile that is redirected to a network share as a cause of high CPU. OneDrive and Offline Files slow the scan for a similar reason: Microsoft says scanning them means more latency than plain local files.
If the analyzer showed those files under OneDrive, Desktop or Documents, move them to a normal local folder such as D:\VMs. That folder is then a candidate for fix 4.
4) Add a Narrow Exclusion for a Trusted Folder
Use this only for a folder you created and trust, like a VM folder or a dev folder. In Windows Security, go to Virus & threat protection > Virus & threat protection settings > Manage settings > Exclusions > Add or remove exclusions > Add an exclusion > Folder. Or from an administrator PowerShell:
Add-MpPreference -ExclusionPath "D:\VMs"Never exclude C:\, Downloads or your whole user profile. Microsoft’s exclusions overview calls every exclusion a gap in protection, so it should fix a specific problem. It also says not to exclude mapped network drives (use the real network path) and to use full paths.
A misspelled exclusion is another cause Microsoft lists, so check that yours works. Open an administrator Command Prompt, go to the newest version folder under %ProgramData%\Microsoft\Windows Defender\Platform, and run:
MpCmdRun.exe -CheckExclusion -Path D:\VMsIt answers “is excluded. Exit code is 0.” or “is not excluded. Exit code is 1.” A folder exclusion also covers its subfolders, so the answer does not tell you which entry matched.
5) Remove a Second Antivirus That Fights with Defender
Microsoft lists conflicts with other security software as a cause. If the analyzer shows another security product’s processes or folders, the two are scanning each other. Microsoft’s fix is to add each product’s paths and processes to the other’s exclusions. On a home PC, I would rather remove one of the two.
What Not to Do
- Do not end the process. Defender is your real-time protection, and stopping it leaves the PC unprotected.
- Do not disable Defender in the registry or Group Policy. Tamper Protection blocks registry changes to Defender settings, and Microsoft says Group Policy or registry changes might appear to succeed while Tamper Protection blocks them. I covered the older ways in my post on removing Windows Defender, but treat that as background. For a slow PC the answer is the settings above.
- Do not delete Defender files or folders from ProgramData.
- Do not add broad exclusions (see fix 4).
One short test is fine: to rule out real-time protection, turn Tamper Protection off in Windows Security (Virus & threat protection settings > Manage settings), switch Real-time protection off, watch the CPU for a minute, then turn both back on. Microsoft’s troubleshooting page describes this. Real-time protection also switches itself back on after a short delay. On a PC managed by your company, the policy wins over these toggles, and Microsoft points admins to troubleshooting mode instead.
Why Is It Using So Much Memory or Disk?
Antimalware Service Executable high memory and high disk use usually come with the same scan activity, so use the same analyzer report. I did not find a separate memory limit in Microsoft’s documentation. If Defender turns out not to be the busy process, SearchFilterHost and sdxhelper.exe are two other Windows processes I have written about.
FAQ
Can I End the Process in Task Manager?
No. It is the process that protects the PC in real time. If it stays busy, find the cause with the analyzer and lower the scan CPU limit instead.
Is It Safe to Stop or Disable It?
No, it is not safe to stop Antimalware Service Executable or disable it just to calm the CPU. Defender protects the PC in real time. Lower the scan limit or find the cause with the analyzer.
Why Is It Always Running, Even When I Am Idle?
It is a service that starts with Windows, so it never really stops. Scheduled scans are meant to run when the PC is idle, so that is by design. A scan after a definition update does the same. If it never settles, run the analyzer.
Does Adding Defender’s Own Folder to Exclusions Help?
None of the Microsoft pages I read recommend it, and it opens a gap in protection. Exclude the folder the analyzer points at, if you trust it.
