MpCmdRun.exe

Windows Defender Command Line

System Process Safe Antivirus
CPU Usage
5-50%
Memory
50-200 MB
Location
Program Files
Publisher
Microsoft

Quick Answer

MpCmdRun.exe is safe. It's Microsoft's command-line tool for Windows Defender used to perform manual scans and antivirus operations from the command line or scripts.

Is it a Virus?
✔ NO - Safe
Must be in C:\Program Files\Windows Defender
Warning
High CPU during scans is normal
Resource usage spikes during manual scans
Can I Disable?
❌ NO
Part of Windows Defender, required for security

What is MpCmdRun.exe?

MpCmdRun.exe is the command-line interface for Windows Defender (Microsoft Defender Antivirus). It allows administrators, scripts, and scheduled tasks to perform antivirus operations without using the graphical user interface, such as running manual scans, updating definitions, and checking system status.

This tool is primarily used by IT professionals for automated scanning, troubleshooting, or when the graphical interface is unavailable. It's also commonly triggered by Windows Task Scheduler for scheduled scans or maintenance tasks.

Quick Fact: MpCmdRun.exe is the same scanning engine used by Windows Defender's GUI, just accessible through command-line parameters, making it ideal for automation and scripting.

Is MpCmdRun.exe Safe?

Yes, MpCmdRun.exe is safe when it's the legitimate Microsoft-signed file located in the correct directory.

Is MpCmdRun.exe a Virus or Malware?

The real MpCmdRun.exe is NOT a virus. It's a legitimate Microsoft component of Windows Defender Antivirus. However, malware can disguise itself with similar names.

How to Tell if MpCmdRun.exe is Legitimate or Malware

  1. File Location: Must be in C:\Program Files\Windows Defender\ or C:\ProgramData\Microsoft\Windows Defender\Platform\[version]\. Any MpCmdRun.exe elsewhere is suspicious.
  2. Digital Signature: Should show "Microsoft Corporation" or "Microsoft Windows" as the verified publisher.
  3. Resource Usage: Normal usage is 5-50% CPU and 50-200 MB RAM during scans. CPU spikes are normal when scanning, but constant high usage when idle is suspicious.
  4. Behavior: Should only run briefly during scans or when manually invoked. If it's constantly running without scanning activity, investigate further.

Red Flags: Located outside official Windows Defender directories, no Microsoft digital signature, runs constantly when not performing scans, multiple instances running simultaneously, or high network activity.

Why Is MpCmdRun.exe Running on My PC?

MpCmdRun.exe runs when Windows Defender needs to perform command-line operations, either manually triggered or automatically scheduled.

Reasons it's running:

Can I Disable or Remove MpCmdRun.exe?

No, you should not disable MpCmdRun.exe. It's an integral part of Windows Defender and removing it would compromise your system's antivirus protection.

Warning: Disabling or removing MpCmdRun.exe leaves your system vulnerable to malware. Windows Defender is your first line of defense, and this tool is essential for its operation.

What You CAN Do Instead

Common Problems: High CPU or Memory Usage

If MpCmdRun.exe is consuming excessive resources:

Common Causes & Solutions

Quick Fixes:
1. Open Task Manager and check if a scan is actively running (high disk activity is normal)
2. Reschedule scans: Open Windows Security → Virus & threat protection → Manage settings → Scan options
3. If stuck, end MpCmdRun.exe in Task Manager and restart Windows Defender service
4. Update definitions: Settings → Update & Security → Windows Update

Frequently Asked Questions

Is MpCmdRun.exe a virus?

No, MpCmdRun.exe is not a virus. It's a legitimate Microsoft component of Windows Defender. Verify it's located in C:\Program Files\Windows Defender\ and has a valid Microsoft digital signature. If located elsewhere or lacks proper signature, run a full system scan.

Why is MpCmdRun.exe using so much CPU?

MpCmdRun.exe uses high CPU (5-50%) during active antivirus scans, which is normal behavior. If CPU usage remains high when no scan is running, check Task Scheduler for overlapping scan tasks or consider updating Windows Defender definitions. You can also reschedule scans to run during idle times.

Can I delete MpCmdRun.exe?

No, you should not delete MpCmdRun.exe. It's a critical component of Windows Defender and removing it will break your antivirus protection. Windows File Protection will likely restore it automatically anyway. If you want to use a different antivirus, install it first, which will disable Windows Defender properly.

Can I disable MpCmdRun.exe?

You cannot and should not disable MpCmdRun.exe directly. Instead, you can disable scheduled scans via Task Scheduler, adjust Windows Defender settings, or install a third-party antivirus which will automatically disable Windows Defender. However, leaving your system without antivirus protection is not recommended.

Why is MpCmdRun.exe running at startup?

MpCmdRun.exe may run at startup if Windows Defender has scheduled tasks configured to run at boot time, or if maintenance tasks need to perform security checks. Check Task Scheduler (Windows Defender folder) to see which tasks are configured to run at startup and adjust their schedules if needed.

How do I use MpCmdRun.exe commands?

Open Command Prompt as Administrator and navigate to C:\Program Files\Windows Defender\. Common commands include: MpCmdRun.exe -Scan -ScanType 1 (quick scan), MpCmdRun.exe -Scan -ScanType 2 (full scan), MpCmdRun.exe -SignatureUpdate (update definitions). Type MpCmdRun.exe -h for all available commands.

Related Processes