My colleague found the following solution:
cd "C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.24010.7-0"
MpCmdRun.exe -ResetPlatform
After these actions, the RAM consumption drops to normal values
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
My issue is with the Antimalware Service Executable > Windows Defender Antivirus Service from the file path C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2301.6-0
running the MsMpEng.exe service. It is utilizing 30-40% of my memory and spiking to even higher of 50-60% at times.
Checked for windows updates > Installed needed updates and rebooted
MSMpEng.exe still started on launch utilizing between 30-40% of my memory
I then ran:
sfc /scannow
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
All completed and I rebooted
MSMpEng.exe still started on launch utilizing between 30-40% of my memory
Disabled Real time protection, Tamper control, Sample sending and rebooted
MSMpEng.exe still started on launch utilizing between 30-40% of my memory
Went into group policy editor > Administrative Templates > Windows Components > Microsoft Defender > Turn off Microsoft defender > Enabled
Restarted
MSMpEng.exe still started on launch utilizing between 30-40% of my memory even after disabling windows defender
Tried to kill MsMpEng.exe service - Access Denied
Tried to Set affinity - Access Denied
Scheduled tasks for once a month, on the 30th
Restarted
MSMpEnd.exe still started on launch utilizing between 30-40% of my memory
At this point I am at a loss of what else I can do besides a full reinstall of Windows to fix this issue. Causing massive performance issues to the point where I cannot even use the laptop at times.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
My colleague found the following solution:
cd "C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.24010.7-0"
MpCmdRun.exe -ResetPlatform
After these actions, the RAM consumption drops to normal values
A third-party program/service (that frequently triggers the on-demand scanner) may be the culprit. You can start a clean boot by turning off all third-party services and startup programs using MSCONFIG.
How to perform a clean boot in Windows
(Source: Microsoft)
(If your problem does not occur while the computer is in a clean boot environment, you can determine which startup application or service is causing the problem by systematically turning them on or off and restarting the computer.)
Additional Information
Please check out the following tweet by the PM, Microsoft Defender for Endpoint.
Paul (DEFENDER) on Twitter: "This. When you observe msmpeng.exe high CPU usage. It’s most likely a symptom, not the disease. Diagnosis helps." / Twitter: https://twitter.com/Threatzman/status/1575654650644402182
SwiftOnSecurity on Twitter: "Mystery: CPU fan at max, high Defender usage, but no current scan. Launch New-MpPerformanceRecording -recordto c:\1.etl , run for bit, Get-MpPerformanceReport c:\1.etl -topprocesses 100 Result: Dell SupportAssist was poking all EXE files on drive, triggering on-access scans." / Twitter: https://twitter.com/SwiftOnSecurity/status/1575625955766194176
For more information, check out: Performance analyzer for Microsoft Defender Antivirus
If you'd like to run a trace, start the <program> and repro the issue. When MsMpEng.exe CPU usage shoots up, do the following:
Open admin PowerShell and run:
Stop the trace after 60 seconds.
Then run:
and then
Go to Pastebin.com and paste the contents of c:\scans.txt, and share the link here.
Note: Trace is meant to be run when Defender's resources usage is high. In an idle state, it's perfectly normal to see msmpeng.exe consuming 100-130 MB of memory.
Additionally, ProcMon trace will help you determine which program triggers the on-demand scanning.
So it's idling about 200mb of memory and spiking upwards of 250mb of memory. Having a laptop with only 8 gb of ram makes this pretty noticeable.
I did run that trace here are the results for you - https://pastebin.com/KayeuzKV
I tried to disable any third party program using the MSCONFIG and rebooting, when I rebooted the pin was not able to be entered and it said I needed to install it from the store. When I tried launching in safemode the pin was still not available and I ended up having to restore to a point from about a month ago. After this I was able to login to my laptop but still having the issue.
Hi Will, I'm a Windows user and I've been struggling with the same sh*tt* service MsMpEng.exe for weeks.
After a long time it seems I've found the definitve solution and it consists in replace the MsMpEng.exe file for a blank file with the same name. You can only do this after booting in Safe Mode so here are the steps I've made:
Reboot in normal mode and that's it!! Good luck.
Regards.
It appears that Edge Setup caused Defender to run amok. I think any other installer will cause the same thing. You may add these three folders to the Defender exclusions list, as a workaround.
C:\Program Files (x86)\Microsoft\Edge
C:\Program Files (x86)\Microsoft\EdgeCore
C:\Program Files (x86)\Microsoft\EdgeUpdate
//I tried to disable any third party program using the MSCONFIG and rebooting, when I rebooted the pin was not able to be entered and it said I needed to install it from the store.//
I think you have disabled ALL services (including the MSFT services). Doing so causes the PIN sign-in issues you describe.
In the image I posted, please see step 2. It's a most important step. You need to disable only the 3rd party services.
That said, you may want to try the clean-boot procedure again and monitor the resource usage by Defender.