Run Microsoft Defender from Command Line using MpCmdRun.exe

To do so, open the command prompt as an administrator. Type the following to get the entire list of commands:

Run Defender Quick scan from the command line

So for instance if you wish to run a Quick scan from the command line, you can use -Scan 1 parameter:

Run Defender Full scan from the command line

To perform a Full scan, use:

Purge Windows Defender Definitions cache

At a command prompt (admin) enter the following command and hit Enter:

Update Windows Defender Quick from the command line

To Update Windows Defender or to create a shortcut to update your Windows Defender  you can use the following command:

You can also create desktop shortcuts to run the following commands. Read: You can also update Windows Defender definitions using Windows PowerShell.

MpCmdRun.exe process

Here is the entire list which I have copy-pasted from the command prompt results: Command Descriptions:

-? / -h : Displays all available options for this tool-Trace [-Grouping #] [-Level #] :  Starts diagnostic tracing-RemoveDefinitions [-All] : Restores the installed signature definitions to a previous backup copy or to the original default set of signatures-RestoreDefaults : Resets the registry values for Microsoft Antimalware Service settings to known good defaults-SignatureUpdate [-UNC] : Checks for new definition updates-Scan [-ScanType] : Scans for malicious software-Restore -Name [-All] : Restore the most recently or all quarantined item(s) based on name-GetFiles : Collects support information-Restore : Restore or list quarantined item(s)-AddDynamicSignature : Loads a dynamic signature-ListAllDynamicSignatures : List the loaded dynamic signatures-RemoveDynamicSignature : Removes a dynamic signature.

Hope this helps you get started. For details, you may visit Microsoft.