How can I change the cpu priority for msmpeng.exe?


KDAM71

Active member
Local time
4:00 PM
Posts
32
OS
Windows 11
Hello

I like to scan my disks regularly using defender. I'd also like to keep using windows during the scan. When defender is scanning my disks the cpu usage by msmpeng is around 80%. I tried lowering the priority but I get the message "access denied". Then I tried to take ownership of msmpeng but that was denied as well.
Does someone know a way to lower priority for msmpeng?

Kind regards, Klaas
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI
    CPU
    11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz 2.69 G
    Motherboard
    I don't know. Laptop model is GF63 Thin 11 UC
    Memory
    8GB
    Graphics Card(s)
    NVidia GeForce RTX 3050 Laptop GPU, Intel UHD Graphics
    Sound Card
    I mainly use a Logitech bluetooth audio receiver
    Monitor(s) Displays
    I use the buildin laptop screen which uses Intel UHD Graphics
    Screen Resolution
    1920x1080
    Hard Drives
    WDC PC SN540 SDDPNPF-512G-1032
    Mouse
    Touchpad
    Internet Speed
    DSL
    Browser
    Firefox
    Antivirus
    Windows Defender
You can use attached batch script to change Windows Defender Antivirus Maximum CPU Usage for a Scan in Windows 10 and Windows 11.
 

Attachments

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
You can use attached batch script to change Windows Defender Antivirus Maximum CPU Usage for a Scan in Windows 10 and Windows 11.
Thanks for the effort but it doesn't seem to change the cpu usage. I chose 20.
Is this supposed to be a permanent change? Should I restart windows for the change to take effect?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI
    CPU
    11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz 2.69 G
    Motherboard
    I don't know. Laptop model is GF63 Thin 11 UC
    Memory
    8GB
    Graphics Card(s)
    NVidia GeForce RTX 3050 Laptop GPU, Intel UHD Graphics
    Sound Card
    I mainly use a Logitech bluetooth audio receiver
    Monitor(s) Displays
    I use the buildin laptop screen which uses Intel UHD Graphics
    Screen Resolution
    1920x1080
    Hard Drives
    WDC PC SN540 SDDPNPF-512G-1032
    Mouse
    Touchpad
    Internet Speed
    DSL
    Browser
    Firefox
    Antivirus
    Windows Defender
Reboot to see changes take effect, don't forget the batch script use for lowering defender scan CPU usage.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1

My Computer

System One

  • OS
    Windows 11 Home
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 8600G (07/24)
    Motherboard
    ASROCK B650M-HDV/M.2 3.18 (07/24)
    Memory
    2x32GB Kingston FURY DDR5 5600 MHz CL36 @4800 CL40 (07/24)
    Graphics Card(s)
    ASROCK Radeon RX 6600 Challenger D 8G @60FPS (08/24)
    Sound Card
    Creative Sound BlasterX AE-5 Plus (05/24)
    Monitor(s) Displays
    24" Philips 24M1N3200ZS/00 (05/24)
    Screen Resolution
    1920×1080@165Hz via DP1.4
    Hard Drives
    Kingston KC3000 NVMe 2TB (05/24)
    ADATA XPG GAMMIX S11 Pro 512GB (07/19)
    PSU
    Seasonic Core GM 550 Gold (04/24)
    Case
    Fractal Design Define 7 Mini with 3x Noctua NF-P14s/12@555rpm (04/24)
    Cooling
    Noctua NH-U12S with Noctua NF-P12 (04/24)
    Keyboard
    HP Pavilion Wired Keyboard 300 (07/24) + Rabalux 76017 Parker (01/24)
    Mouse
    Logitech M330 Silent Plus (04/23)
    Internet Speed
    500/100 Mbps via RouterOS (05/21) & TCP Optimizer
    Browser
    Edge & Brave for YouTube & LibreWolf for FB
    Antivirus
    NextDNS blocking 99% TLDs
    Other Info
    Backup: Hasleo Backup Suite (PreOS)
    Headphones: Sennheiser RS170 (09/10)
    Phone: Samsung Galaxy Xcover 7 (02/24)
    Chair: Huzaro Force 4.4 Grey Mesh (05/24)
    Notifier: Xiaomi Mi Band 9 Milanese (10/24)
    2nd Monitor: AOC G2460VQ6 @75Hz (02/19)
Reboot to see changes take effect, don't forget the batch script use for lowering defender scan CPU usage.
I ran the script, chose 20, rebooted and started the scan. The cpu usage is around 90% for a while now.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI
    CPU
    11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz 2.69 G
    Motherboard
    I don't know. Laptop model is GF63 Thin 11 UC
    Memory
    8GB
    Graphics Card(s)
    NVidia GeForce RTX 3050 Laptop GPU, Intel UHD Graphics
    Sound Card
    I mainly use a Logitech bluetooth audio receiver
    Monitor(s) Displays
    I use the buildin laptop screen which uses Intel UHD Graphics
    Screen Resolution
    1920x1080
    Hard Drives
    WDC PC SN540 SDDPNPF-512G-1032
    Mouse
    Touchpad
    Internet Speed
    DSL
    Browser
    Firefox
    Antivirus
    Windows Defender
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
Thanks. Your script has set the value properly. It doesn't seem to have the desired effect on my computer though.
Now I set the value to 5. I rebooted and started the scan. The cpu usage stays under 10% for about a minute. Than it jumps to around 90% and stays there for about 7 minutes. Than it gradually comes down to under 10% again and stays there for the remainder of the scan (about 11 minutes).
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI
    CPU
    11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz 2.69 G
    Motherboard
    I don't know. Laptop model is GF63 Thin 11 UC
    Memory
    8GB
    Graphics Card(s)
    NVidia GeForce RTX 3050 Laptop GPU, Intel UHD Graphics
    Sound Card
    I mainly use a Logitech bluetooth audio receiver
    Monitor(s) Displays
    I use the buildin laptop screen which uses Intel UHD Graphics
    Screen Resolution
    1920x1080
    Hard Drives
    WDC PC SN540 SDDPNPF-512G-1032
    Mouse
    Touchpad
    Internet Speed
    DSL
    Browser
    Firefox
    Antivirus
    Windows Defender
Back
Top Bottom