mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-04 16:47:23 +00:00
2.1 KiB
2.1 KiB
title, description, keywords, search.product, ms.pagetype, ms.prod, ms.mktglfcycl, ms.sitesec, ms.pagetype, localizationpriority, author
title | description | keywords | search.product | ms.pagetype | ms.prod | ms.mktglfcycl | ms.sitesec | ms.pagetype | localizationpriority | author |
---|---|---|---|---|---|---|---|---|---|---|
Learn how to run a scan from command line in Windows Defender (Windows 10) | Windows Defender utility enables IT professionals to use command line to run antivirus scans. | run windows defender scan, run antivirus scan from command line, run windows defender scan from command line, mpcmdrun, defender | eADQiWindows 10XVcnh | security | w10 | manage | library | security | medium | mjcaparas |
Run a Windows Defender scan from the command line
Applies to:
- Windows 10
IT professionals can use a command-line utility to run a Windows Defender scan.
The utility is available in %Program Files%\Windows Defender\MpCmdRun.exe.
This utility can be handy when you want to automate the use of Windows Defender.
To run a quick scan from the command line
- Click Start, type cmd, and press Enter.
- Navigate to %ProgramFiles%\Windows Defender and enter the following command, and press Enter:
C:\Program Files\Windows Defender\mpcmdrun.exe -scan -scantype 1
The quick scan will start. When the scan completes, you'll see a message indicating that the scan is finished.
The utility also provides other commands that you can run:
MpCmdRun.exe [command] [-options]
Command | Description |
---|---|
- ? / -h | Displays all available options for the tool |
-Scan [-ScanType #] [-File [-DisableRemediation] [-BootSectorScan]][-Timeout ] | Scans for malicious software |
-Trace [-Grouping #] [-Level #] | Starts diagnostic tracing |
-GetFiles | Collects support information |
-RemoveDefinitions [-All] | Restores the installed signature definitions to a previous backup copy or to the original default set of signatures |
-AddDynamicSignature [-Path] | Loads a dynamic signature |
-ListAllDynamicSignature [-Path] | Lists the loaded dynamic signatures |
-RemoveDynamicSignature [-SignatureSetID] | Removes a dynamic signature |
The command-line utility provides detailed information on the other commands supported by the tool. |