Windows Security · Windows 11 and Windows 10
Fix Antimalware Service Executable using constant high CPU
Antimalware Service Executable is Microsoft Defender doing its job — a scan, an update check, or a file it keeps re-reading. A short burst is normal. The same process holding high CPU for hours is usually a scan that never finishes, a scan scheduled for your busiest hour, or one folder it scans over and over.
What you need
- An hour of observation first. Note whether the CPU use ever drops to near zero, and what you were doing when it started.
- Administrator access. The scheduling and service steps need an administrator account.
- No second antivirus mid-install. If another antivirus is installing or removing itself, finish that first — two engines fighting looks exactly like this fault.
Read the problem before you touch it
- Confirm which process it is. Open Task Manager and find Antimalware Service Executable under Processes. Expand it: the child entry is usually Microsoft Defender Antivirus Service. Note the CPU figure over a full minute, not a single spike — the fix for a steady 30 percent is different from the fix for a brief 90 percent during a scan.
- Check whether a scan is running. Open Windows Security > Virus & threat protection. If a quick or full scan is in progress, let it finish once; a scan interrupted repeatedly never completes and simply starts again. Microsoft sets out the scan controls in Virus and threat protection in Windows Security.
- Look for the trigger pattern. Note whether the CPU climbs when you open one particular program, copy files into one folder, or at the same time each day. A daily pattern points at the scheduled scan. A single-folder pattern points at something Defender re-scans on every access, such as a large archive or a build output folder that changes constantly.
The simple fixes, in order
- Let one full scan finish, then restart. Run a Full scan from Virus & threat protection and leave the PC idle until it completes, then restart. A scan database that never reached the end is the most common cause of Defender starting work again at every boot.
- Move the scheduled scan to a quiet hour. Open Task Scheduler, expand Task Scheduler Library > Microsoft > Windows > Windows Defender, and open the Windows Defender Scheduled Scan task. Set it for a time the PC is on but unused, such as a lunch hour, and tick the option to wake the computer only if your PC is normally asleep then.
- Update Windows and Defender together. Go to Settings > Windows Update and install everything offered, then restart. Defender platform fixes arrive through Windows Update, and a stuck older engine is a known cause of scan loops. Microsoft lists this update route among the standard Virus and threat protection in Windows Security checks.
- Check protection history for one repeated file. In Virus & threat protection, open Protection history. The same file detected, quarantined, and then detected again after every restart means something is restoring it. Deal with that file — update or remove the program it belongs to — rather than fighting the CPU symptom.
The advanced route
- Exclude one proven noisy folder, narrowly. Only if the pattern step pinned the load to one folder that changes constantly, such as a compiler output folder, add that single folder under Virus & threat protection settings > Exclusions. Microsoft documents the mechanism in Add an exclusion to Windows Security. Exclude the smallest folder that fixes it, never a whole drive, never your Downloads folder, and remove the exclusion once the noisy job is gone — an exclusion is a blind spot you chose, so keep it small and temporary.
- Repair the system files Defender depends on. Open Windows Terminal as administrator, run
DISM /Online /Cleanup-Image /RestoreHealth, thensfc /scannow, and restart. Microsoft documents both tools in Using System File Checker in Windows. Corrupt servicing files can leave a scan unable to record that it finished. - Reset the scan cache by completing an offline scan. In Virus & threat protection, choose Scan options > Microsoft Defender Offline scan and restart when prompted. The PC scans before Windows fully loads, which clears items that keep a normal scan from completing. Save all open work first.
End state
- Antimalware Service Executable sits near zero CPU when the PC is idle.
- A full scan starts, completes, and is recorded with a time and result.
- The scheduled scan runs at the quiet hour you set, not during your work.
When it goes wrong
- CPU is high only while you copy or build files. That is real-time scanning doing its job on a heavy workload. Shorten the workload's folder with the narrow exclusion above, or accept the cost — do not turn off real-time protection to speed up a copy.
- A second antivirus is also installed. Two active engines scan each other's work endlessly. Keep one, remove the other completely, and restart; Defender steps back automatically when another registered antivirus is active.
- The process returns within minutes of every restart. Check Protection history for the repeated-file loop before changing any setting; the loop, not the scheduler, is the fault.
- You are tempted to disable Defender in the registry or Group Policy. Do not. On a home PC it re-enables itself, and the attempt leaves protection in an unknown state. Work the scan, the schedule, and the repeated file instead.
Related fixes
-
Fix one process that pins the CPU at 100 percent
When one process sits at 100 percent CPU and the PC crawls, the process name is the diagnosis. Some processes are working hard on a real job that finishes, some are stuck, and a few should not be there at all. Identify the process first, give real work a chance to finish, then act on the stuck and the unwanted.
-
Fix a PC that stops at a CPU fan error during startup
A CPU fan error at startup means the board cannot see the CPU fan spinning — even when you can see it spin. Check the fan is on the right header first, then its speed reading, then the board's minimum-speed setting.
-
Fix a PC stuck on 'Getting Windows ready' for hours
A screen that says 'Getting Windows ready' for a short while is normal after an update. The same screen for many hours, with no progress and no disk activity, usually means the update has stalled. Wait the right amount of time first, then use the recovery route instead of guessing.
-
Fix a PC that will not boot after a CPU upgrade
A PC that will not start after a CPU swap usually has a board that does not know the new chip yet, not a dead processor. Put the old CPU back, update the firmware to a version that lists the new chip, and reseat and remount carefully before you try again.
Sources
- Microsoft Support, Virus and threat protection in Windows Security — the scan controls and protection settings in Windows Security.
- Microsoft Support, Add an exclusion to Windows Security — how exclusions work and where they are set.
- Microsoft Support, Using System File Checker in Windows — running SFC and DISM to repair system files.