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 and Office Install, redeem, activate For business Windows
Windows for business Windows Client for IT Pros Devices and deployment Configure application groups
Windows for business Windows Client for IT Pros User experience Other
{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.