Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การแก้ไขปัญหา >> ข้อผิดพลาด Windows

แก้ไข: CPU สูงจาก Antimalware Service Executable (MsMpEng.exe)

Antimalware Service Executable (MsMpEng.exe) เป็นกระบวนการของ Windows Defender ที่ทำงานสแกนไฟล์และกิจกรรมแบบเรียลไทม์ สาเหตุหลักของ CPU สูงคือ:

  • Real-time protection: สแกนไฟล์ การเชื่อมต่อ และแอปพลิเคชันตลอดเวลา
  • Full Scan: สแกนไฟล์ทั้งหมดเมื่อคอมพิวเตอร์喝醒จากโหมดสลีป เชื่อมต่อเครือข่าย หรือตามตารางเวลา

ระหว่าง Full Scan ระบบอาจล่าช้า ควรปล่อยให้สแกนเสร็จสิ้น (อาจใช้เวลาหลายชั่วโมง) แต่ Full Scan ไม่ควรทำทุกวัน

วิธีแก้ไข

1. ปรับตารางการสแกน Windows Defender ให้เหมาะสม

  1. เปิด Task Scheduler (ค้นหา "Task Scheduler" ใน Start Menu)
  2. ไปที่ Task Scheduler Library > Microsoft > Windows > Windows Defender
  3. คลิกขวา Windows Defender Scheduled Scan > Properties
  4. แท็บ General: ยกเลิกติ๊ก Run with highest privileges
  5. แท็บ Conditions: ยกเลิกติ๊กทุกอย่างภายใต้ Idle, Power, Network
  6. แท็บ Triggers: สร้าง Trigger ใหม่ ตั้งเป็น Weekly หรือ Monthly ตามต้องการ
  7. ทำซ้ำกับ Windows Defender Cache Maintenance, Cleanup, Verification

2. ปิด Windows Defender (สำหรับ Windows 10 Pro/Enterprise)

ผ่าน Group Policy Editor:

  1. กด Win+R พิมพ์ gpedit.msc
  2. ไปที่ Computer Configuration > Administrative Templates > Windows Components > Windows Defender
  3. ดับเบิลคลิก Turn off Windows Defender เลือก Enabled > OK

ผ่าน Registry (ทุก Edition):

  1. กด Win+R พิมพ์ regedit
  2. ไปที่ HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
  3. สร้าง/แก้ไข DWORD DisableAntiSpyware = 1
  4. รีสตาร์ทคอมพิวเตอร์

3. เพิ่ม MsMpEng.exe ในรายการข้อยกเว้น (Exclusion)

  1. เปิด Task Manager (Ctrl+Shift+Esc) หา Antimalware Service Executable
  2. คลิกขวา > Open file location คัดลอกพาธเต็มของ MsMpEng.exe
  3. ไป Settings > Update & Security > Windows Security > Virus & threat protection > Manage settings > Add or remove exclusions
  4. คลิก Add an exclusion > Process วางพาธและเพิ่ม \MsMpEng.exe

4. สแกนมัลแวร์ด้วย Malwarebytes/AdwCleaner

มัลแวร์อาจทำให้ MsMpEng.exe ทำงานผิดปกติ ให้สแกนด้วยโปรแกรมต่อต้านมัลแวร์เฉพาะทาง

5. ลบอัปเดต Definitions ที่เสียหาย

  1. เปิด Command Prompt (Admin)
  2. รันคำสั่ง:
    "%PROGRAMFILES%\Windows Defender\MPCMDRUN.exe" -RemoveDefinitions -All
  3. จากนั้นรัน:
    "%PROGRAMFILES%\Windows Defender\MPCMDRUN.exe" -SignatureUpdate

6. ปิด Exploit Protection (Process Mitigations)

  1. เปิด PowerShell (Admin)
  2. รันคำสั่ง:
    powershell "ForEach($v in (Get-Command -Name 'Set-ProcessMitigation').Parameters['Disable'].Attributes.ValidValues){Set-ProcessMitigation -System -Disable $v.ToString().Replace(' ', '').Replace('\n', '') -ErrorAction SilentlyContinue}"
  3. รีสตาร์ทคอมพิวเตอร์

7. ใช้แอนติไวรัสทางเลือก (เช่น Malwarebytes)

ติดตั้งแอนติไวรัสภายนอกจะปิด Windows Defender อัตโนมัติ ลดภาระ CPU

คำถามที่พบบ่อย (FAQ)

Q: สามารถ End Process Antimalware Service Executable ได้ไหม?
A: ไม่ได้ตราบใดที่ใช้ Windows Defender อยู่ แต่หากปิด Real-time protection หรือเปลี่ยนแอนติไวรัส กระบวนการนี้จะหายไป

Q: ทำไม Antimalware Service Executable จึงใช้ CPU สูง?
A: เพราะสแกนกิจกรรมระบบแบบเรียลไทม์

Q: แก้ไข CPU สูงจาก Antimalware Service Executable ยังไง?
A: ทำตามวิธีข้างต้นทั้งหมด