Symptoms: the computer is slow or the fan runs loudly, and Task Manager shows Antimalware Service Executable (the program MsMpEng.exe) using a large share of the CPU or disk.
Why it happens
It is the engine of Microsoft Defender. It uses a lot of CPU when it runs a scan, checks a large number of files, or scans its own folders. It is usually temporary. If it never stops, something is making it work too hard.
1. Let it finish, and update
After a restart or an update, Defender may run a scan for up to an hour. Install Windows updates, which include new Defender versions and often fix high-use bugs.
2. Check for another security program
Two antivirus products fight each other. Open Settings → Apps → Installed apps and remove any second antivirus. Windows turns Defender off by itself when a trusted antivirus is installed.
3. Move the scan to a quiet time
- Press Windows + R, type
taskschd.msc, and press Enter. - Open Task Scheduler Library → Microsoft → Windows → Windows Defender.
- Double-click Windows Defender Scheduled Scan, open Conditions and tick Start the task only if the computer is idle and Start only if the computer is on AC power.
4. Exclude big, safe folders
Excluding things Defender keeps scanning (for example a large development or video folder you trust) reduces the load:
Settings → Privacy & security → Windows Security → Virus & threat protection → Manage settings → Exclusions → Add an exclusion.
Exclude a specific folder or process, not whole drives. Everything you exclude is no longer checked for malware, so only exclude what you really trust.
5. Repair Windows if it stays high
Open Command Prompt as administrator and run DISM /Online /Cleanup-Image /RestoreHealth, then sfc /scannow. See "How to improve Windows performance using built-in system commands".
What not to do
Do not turn off real-time protection and leave it off. Switching it off for a few minutes to test a program is acceptable, but turn it back on right away: the computer is open to attack until you do.
If it is still high after these steps, open a ticket and tell us what Task Manager shows.