Microsoft Defender Command-Line Tool (MpCmdRun.exe)
MpCmdRun.exe is the Microsoft Defender Antivirus command-line interface that ships with Windows. It enables rapid, scripted control over Defender features, including quick and full scans, signature updates, quarantine management, and log export, all without launching the graphical Defender UI. It is commonly used by admins and power users.
MpCmdRun.exe interacts with the Defender protection engine to initiate scans (quick, full, or custom), update signatures, and handle quarantine. It accepts switches such as -Scan, -ScanType, and -SignatureUpdate, and runs with elevated privileges to modify Defender state when invoked from CMD/PowerShell.
Reasons it's running:
No. MpCmdRun.exe is a legitimate Microsoft Defender Antivirus command-line utility signed by Microsoft Corporation and used for scripted protection tasks.
Open an elevated prompt and run MpCmdRun.exe -SignatureUpdate to fetch the latest definitions from Microsoft.
Use MpCmdRun.exe -Scan -ScanType 1 from an elevated command prompt to perform a quick scan with Defender.
Yes. MpCmdRun.exe is designed for automation and can be invoked by Task Scheduler to run scans, updates, or log exports on a schedule.
Defender may run MpCmdRun.exe as part of background protection tasks, but resource usage should be modest. If spikes persist, check for active scans and ensure Defender is up to date.
Check the file path (e.g., C:\Program Files\Windows Defender\MpCmdRun.exe), verify the digital signature shows Microsoft Corporation, and confirm the version matches Windows Defender expectations.