After the Windows 11 24H2 update, many users open Task Manager to find Antimalware Service Executable (MsMpEng.exe) camped at 20, 40, or even 70 percent CPU — fans roaring, laptop hot, everything sluggish. It looks like the antivirus has gone rogue. In nearly every case it has not: 24H2 is a major platform update, and Defender responds to major platform updates with heavy re-scanning, re-baselining, and definition churn that hammers the CPU for a day or two.
The mistake is reaching for the off switch. Disabling Defender guts your protection and Windows fights you on it anyway; the real fix is shrinking Defender’s workload so it finishes its business and gets out of the way. Below is the technician’s sequence: confirm what it is doing, let legitimate scans finish on your schedule, exclude the folders it obsessively rescans, and repair it if it is genuinely stuck. For the wider high-CPU picture, see fixing high CPU usage in Windows 11 24H2 ; to trim what launches at boot, read disabling startup programs in Windows 11 .
Why this happens
- Post-24H2 full system re-baseline: Major updates trigger Defender to rescan broadly so its baselines match the new OS build — the single most common cause of the spike.
- Real-time scanning of update-touched files: 24H2 touches tens of thousands of files; each gets scanned as the system settles, compounding CPU load for a day or more.
- High-churn folders rescanned endlessly: Developer build outputs, game libraries, and download folders change constantly and get re-scanned on every change.
- Scheduled scan colliding with active hours: The default scheduled scan may run while you work if 24H2 reset its triggers or idle conditions.
- Corrupt definitions or platform update: A damaged Security Intelligence update or Defender platform can send the engine into inefficient scanning loops.
- Leftover third-party antivirus drivers: Remnants of previously installed AV products install filter drivers that fight Defender for every file access.
- Genuine threat remediation in progress: Occasionally the CPU spike is Defender working hard against real malware — always check protection history before tuning.
How to fix it
Work through these in order — diagnose first, then act.
Fix 1: Check Protection history before changing anything
Never tune blind. Two minutes of evidence separates legitimate scanning from a stuck engine.
- Open Windows Security > Virus & threat protection > Protection history and look for recent scans, quarantines, or blocked threats.
- Confirm Virus & threat protection updates shows current definitions — stale definitions cause inefficient, repeated scanning.
- In Task Manager > Details, right-click MsMpEng.exe and check whether CPU correlates with disk activity (active scan) or sits high while idle (stuck engine).
- Note timing: constant high CPU versus spikes during specific activities like compiling code or Steam updates point to different causes.
- If Protection history shows the same files scanned repeatedly, note those paths — they are your exclusion candidates.
Fix 2: Give the post-24H2 scan a clean window to finish
Interrupting the re-baseline scan just restarts it. Let it complete once, on your terms.
- Leave the laptop plugged in and idle for 2–3 hours — preferably overnight — so the initial 24H2 scan completes without contention.
- Keep the lid open and sleep disabled during this window: Settings > System > Power & battery > set sleep to Never temporarily.
- Do not run heavy apps during the window; every new file you create gets scanned and extends the job.
- Afterward, check Task Manager: MsMpEng.exe should drop to near zero at idle if the baseline completed.
- If CPU is still high after a full idle night, move on — the scan is not the problem, something is keeping it busy.
Fix 3: Reschedule scans to idle hours
Move Defender’s heavy lifting to when you are not using the machine.
- Open Task Scheduler (
taskschd.msc) > Task Scheduler Library > Microsoft > Windows > Windows Defender. - Right-click Windows Defender Scheduled Scan > Properties > Triggers, and set a time you are reliably away, such as 3 AM.
- On the Conditions tab, enable Start the task only if the computer is idle and Stop if the computer ceases to be idle.
- Decide on Wake the computer to run this task: enable it for reliable overnight scans, disable it if 3 AM wake-ups bother you.
- Stagger the Cache Maintenance and Cleanup tasks so they do not pile onto the same window.
Fix 4: Add targeted exclusions for trusted high-churn folders
The highest-impact fix for developers, gamers, and creators whose folders change hundreds of times daily.
- Open Windows Security > Virus & threat protection > Manage settings > Exclusions > Add or remove exclusions.
- Add specific trusted folders: your code workspace, Steam library (
steamapps\common), or video-editing scratch disks — never broad paths likeC:\. - Exclude trusted processes too (e.g., your compiler or game launcher executable) if folder exclusions are insufficient.
- Never exclude Downloads, Temp, browser profiles, or system folders — that is where real threats live.
- Re-test during your normal heavy workload: MsMpEng.exe should spike briefly on genuinely new files, not camp at high CPU.
Fix 5: Repair Defender’s definitions and platform
A corrupted Security Intelligence update or platform component can loop the engine. Repair it cleanly.
- Open an elevated PowerShell and run
Update-MpSignatureto force a fresh definition pull. - In Settings > Windows Update, install everything pending — Defender platform updates ship through Windows Update.
- If the Microsoft Store version exists on your system, check Store > Downloads for a Windows Security platform update.
- Run
DISM /Online /Cleanup-Image /RestoreHealththensfc /scannow— Defender is a Windows component and these repairs cover it. - Reboot and observe for 30 minutes at idle; a repaired engine settles to near-zero CPU quickly.
Fix 6: Remove conflicting third-party antivirus remnants
Leftover filter drivers from old AV products are a classic cause of Defender spinning its wheels on every file operation.
- Check Settings > Apps for any third-party antivirus still installed and uninstall it properly.
- Download that vendor’s official removal tool (search the vendor name plus removal tool) — uninstallers routinely leave filter drivers behind.
- Run the removal tool, reboot, and confirm Windows Security shows Microsoft Defender as the active provider.
- In Device Manager > View > Show hidden devices, look under Non-Plug and Play Drivers for orphaned AV filter drivers and uninstall them.
- Monitor MsMpEng.exe for a day — driver conflicts cause the most stubborn, reboot-resistant CPU usage.
Fix 7: Run an offline scan, then consider your options
Rule out the one scenario where high CPU is Defender doing its job heroically: fighting real malware.
- Go to Windows Security > Virus & threat protection > Scan options > Microsoft Defender Offline scan > Scan now.
- The machine reboots into a clean environment outside Windows — let the scan complete fully, which can take an hour.
- If it finds and removes threats, the high CPU was legitimate; monitor for a day to confirm normal behavior returns.
- If the scan is clean and tuning failed, the legitimate alternative to disabling Defender is a reputable third-party AV that registers with Windows Security Center.
- Whatever you do, keep Tamper Protection on — disabling it to hack Defender quiet is never the answer; see Microsoft’s Windows security guidance for the supported settings.
Closing
Defender high CPU after 24H2 is almost always the engine doing real work — re-baselining after a major update or rescanning folders that never sit still. Give the initial scan its window, schedule future scans for idle hours, exclude the trusted folders it chews on, and it fades back into the background. The off switch is the one fix that trades your security for nothing.
