

Same as -GetFiles, but outputs to temporary DiagTrack folder. Values for ScanType are:Ġ Default, according to your configurationĬpuThrottling runs according to policy configurations.Ĭaptures all the network input into the Network Protection service and saves it to a file at. Commands Commandĭisplays all available options for the MpCmdRun tool In our example, the MpCmdRun utility starts a full antivirus scan on the device. Here's an example: MpCmdRun.exe -Scan -ScanType 2 The MpCmdRun utility uses the following syntax: MpCmdRun.exe For more information about the antimalware platform, see Microsoft Defender Antivirus updates and baselines. If you're running an updated Microsoft Defender antimalware platform version, run MpCmdRun from the following location: C:\ProgramData\Microsoft\Windows Defender\Platform\. When you search for Command Prompt on the Start menu, choose Run as administrator. 7-0In the command, replace ".7-0" with the latest version of the folder available on your device.You might need to open an administrator-level version of the command prompt. Type the following command to access the folder with the latest version and press Enter: cd.Type the following command to identify the latest version of the antivirus command tool and press Enter: dir.Type the following command to access the Platform folder and press Enter: cd c:\ProgramData\Microsoft\Windows Defender\Platform.Search for Command Prompt, right-click the top result, and select the Run as administrator option.To scan a specific folder or file manually using Command Prompt, use these steps: How to scan a file or folder manually with Defender using Command Prompt However, you can only use it to scan folders, not a specific file, which is why we're not listing this option.

You can also use the "Custom scan" option from the "Virus & threat protection" section to perform custom scans. Source: Windows Central (Image credit: Source: Windows Central)Īs you complete the steps, the Windows Security app will open in the "Virus & threat protection" page, where you'll be able to see the scan progress, result, and require action if malware is detected.
