This tutorial will show you different ways to manually scan files, folders, and drives on demand with Microsoft Defender Antivirus in Windows 10 and Windows 11.
Microsoft Defender Antivirus is an antivirus software that is included in Windows 11 and can help protect your device from viruses, malware, and other threats.
Microsoft Defender Antivirus regularly scans your device to help keep it safe. It tries to do this while you are not using your device so it doesn’t interfere with your work.
Real-time protection consists of always-on scanning with file and process behavior monitoring and heuristics. When real-time protection is on, Microsoft Defender Antivirus detects malware and potentially unwanted software that attempts to install itself or run on your device, and prompts you to take action on malware detections.
Sometimes you may need to manually scan with Microsoft Defender Antivirus.
- Option One: Scan with Microsoft Defender Antivirus using Context Menu
- Option Two: Scan with Microsoft Defender Antivirus in Windows Security
- Option Three: Scan with Microsoft Defender Antivirus in Command Prompt
- Option Four: Scan with Microsoft Defender Antivirus in PowerShell
1 Select one or more files, folders, or drives you want to scan on your desktop or in File Explorer (Win+E).
2 Right click on the selected items, click/tap on Show more options, and click/tap on Scan with Microsoft Defender.... (see screenshots below)
3 Windows Security will now automatically open showing you the scan results. (see screenshots below)
4 If threats were found, you will be able to select an action for the threat(s), and click/tap on Start actions to perform them. (see screenshots below)
You can click/tap on the See details link to see more details on a threat.
1 Open Windows Security.
2 Click/tap on Virus & threat protection. (see screenshot below)
3 Click/tap on the Scan options link under Current threats. (see screenshot below)
4 Select (dot) Quick scan, Full scan, Custom scan, or Microsoft Defender Offline scan for the type of scan you want to run, and click/tap on Scan now. (see screenshot below)
5 If you selected Custom scan, navigate to and select a folder or drive you want to scan, and click/tap on Select Folder. (see screenshot below)
6 If threats were found, you will be able to select an action for the threat(s), and click/tap on Start actions to perform them. (see screenshots below)
You can click/tap on the See details link to see more details on a threat.
To see more usage options for the MpCmdRun.exe command, see: Use the command line to manage Microsoft Defender Antivirus
1 Open Windows Terminal. and select Command Prompt.
2 Copy and paste the command below you want to use into Windows Terminal, and press Enter. (see screenshot below)
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -SignatureUpdate & "%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Scan -ScanType 1
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Scan -ScanType 1
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Scan -ScanType 2
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -File "Full Path"
Substitute Full Path in the command above with the full path of the file, folder, or drive you want to scan.
For example: "%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -File "C:\Users\Brink\Downloads"
3 If threats were found, you will get a notification from Windows Security to click/tap on to see and take actions.
To see more usage options for the Start-MpScan command, see: Start-MpScan (Defender)
1 Open Windows Terminal. and select Windows PowerShell.
2 Copy and paste the command below you want to use into Windows Terminal, and press Enter. (see screenshot below)
Update-MpSignature; Start-MpScan -ScanType QuickScan
Start-MpScan -ScanType QuickScan
Start-MpScan -ScanType FullScan
Start-MpScan -ScanType CustomScan -ScanPath "Full Path"
Substitute Full Path in the command above with the full path of the file, folder, or drive you want to scan.
For example: Start-MpScan -ScanType CustomScan -ScanPath "C:\Users\Brink\Downloads"
3 If threats were found, you will get a notification from Windows Security to click/tap on to see and take actions.
That's it,
Shawn Brink
- Enable or Disable Microsoft Defender Antivirus in Windows 11
- Add or Remove "Scan with Microsoft Defender" Context Menu in Windows 11
- Run Microsoft Defender Offline Scan in Windows 11
- View Windows Security Protection History in Windows 11
- Change Microsoft Defender Antivirus Max CPU Usage during Scan in Windows 11