How do i limit Windows Defender CPU usage or set an Affinity Limit

Bo Zilla Leonard 0 Reputation points
2025-01-22T17:54:17.5533333+00:00

My system is not allowing me to set CPU Usage or an Affinity Limit for Windows Defender (msmpeng.exe). It is using all my PC resources for almost an hour every time the PC is started.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,626 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,023 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,992 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sikati Fotso Deker 5 Reputation points
    2025-01-29T15:37:19.3866667+00:00
    1. Open Task Manager:
      • Press Ctrl + Shift + Esc to open Task Manager.
      • Alternatively, right-click on the taskbar and select "Task Manager."
    2. Find Windows Defender:
      • Go to the "Processes" tab.
      • Look for "Antimalware Service Executable" or "Windows Defender Antivirus Service."
    3. Set CPU Affinity:
      • Right-click on the "Antimalware Service Executable."
      • Select "Set affinity."
      • In the dialog box that appears, you can choose which CPU cores the process can use. Uncheck the boxes for the cores you want to restrict access to.
    4. Limit CPU Priority:
      • Again, right-click on the "Antimalware Service Executable."
      • Select "Set priority" and choose a lower priority (like "Below normal" or "Low") to reduce its CPU usage.

    Note: Changing the CPU affinity and priority can impact Windows Defender’s performance, potentially delaying system scans and other protective measures. Use these settings carefully and revert them if necessary.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.