Tip: Run (and Automate) Windows Defender from the Command Line
Follow Our Daily Tips
Windows Defender includes a command-line utility, MpCmdRun.exe, which can be handy if you want to automate the use of Windows Defender. The utility is located on Windows 7 at %ProgramFiles%\Windows Defender\MpCmdRun.exe.
The basic usage at the command prompt is:
MpCmdRun.exe [command] [-options]
Here’s an overview of available commands:
|Displays all available options for the tool
|-Trace [-Grouping #] [-Level #]
|Starts diagnostic tracing
|Restores the installed signature definitions to a previous backup copy or to the original default set of signatures
|Resets the registry values for Windows Defender settings to known good defaults
|Checks for new definition updates
|Scans for malicious software
|Collects support information
Tip by Matthew Graven, TechNet Tips Editor.
Looking for More Tips?
For more tips on Microsoft products and technologies, visit the TechNet Tips library.