Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
You can run an on-demand scan on individual endpoints. These scans will start immediately, and you can define parameters for the scan, such as the location or type. When you run a scan, you can choose from among three types: Quick scan, full scan, and custom scan. In most cases, use a quick scan. A quick scan looks at all the locations where there could be malware registered to start with the system, such as registry keys and known Windows startup folders.
Combined with always-on, real-time protection, which reviews files when they are opened and closed, and whenever a user navigates to a folder, a quick scan helps provide strong protection against malware that starts with the system and kernel-level malware. In most cases, a quick scan is sufficient and is the recommended option for scheduled or on-demand scans. Learn more about scan types.
Important
Microsoft Defender Antivirus runs in the context of the LocalSystem account when performing a local scan. For network scans, it uses the context of the device account. If the domain device account doesn't have appropriate permissions to access the share, the scan won't work. Ensure that the device has permissions to access the network share.
Use Microsoft Defender portal to run a scan
- Go to the Microsoft Defender portal (https://security.microsoft.com) and sign-in.
- Go to the device page that you would like to run a remote scan.
- Click on the ellipses (...).
- Click on Run Antivirus Scan.
- Under Select scan type, select the radio button for Quick Scan or Full Scan.
- Add a comment.
- Click on Confirm.
To check on the status:
- Under Actions & submissions, select Action Center and then select History tab.
- Click on Filters.
- Under the Action Type, check the box for Start antivirus scan.
- Click on Apply.
- Select one of the radio button.
- Under Action Status, you'll see the status such as Completed.
To check on the detections, see Review the results of Microsoft Defender Antivirus scans | Microsoft Learn
Use Microsoft Intune to run a scan
Use endpoint security to run a scan on Windows devices
Go to the Microsoft Intune admin center (https://intune.microsoft.com) and sign-in.
Choose Endpoint security > Antivirus.
In the list of tabs, select Windows 10 unhealthy endpoints or Windows 11 unhealthy endpoints.
From the list of actions provided, select Quick Scan (recommended) or Full Scan.
Tip
For more information about using Microsoft Configuration Manager to run a scan, see Antimalware and firewall tasks: How to perform an on-demand scan.
Use devices to run a scan on a single device
Go to the Microsoft Intune admin center (https://intune.microsoft.com) and sign-in.
From the sidebar, select Devices > All Devices and choose the device you want to scan.
Select ...More and select Quick Scan (recommended) or Full Scan from the options.
Use the Windows Security app to run a scan
For instructions on running a scan on individual endpoints, see Run a scan in the Windows Security app.
Use PowerShell to run a scan
Run the following command:
Start-MpScan
For detailed syntax and parameter information, see Start-MpScan.
Use PowerShell to run a quick scan without exclusions
Run the following command:
Set-MpPreference -QuickScanIncludeExclusions ScanRtpExclusions
The value ScanRtpExclusions or 1 includes paths that are excluded from antivirus using contextual exclusions with the following restrictions: ScanTrigger:OnAccess, ScanTrigger:BM, and Process:. For more information on how to set these exclusions, see Contextual file and folder exclusions.
The default value Disabled or 0 disables the inclusion of the contextually excluded paths.
Important
Including very large directories in quick scans might significantly increase the time it takes for the quick scan to complete.
For more information on how to use PowerShell with Microsoft Defender Antivirus, see Use PowerShell cmdlets to configure and run Microsoft Defender Antivirus and Defender Antivirus cmdlets.
Use the MpCmdRun command-line tool to run a quick scan
Open an elevated Command Prompt (a Command Prompt window you opened by selecting Run as administrator). For example:
- Open the Start menu, and then type cmd.
- Right-click on the Command Prompt result, and then select Run as administrator.
In the elevated Command Prompt, run the following commands:
Tip
The first command changes the directory to the latest version of <antimalware platform version> in
%ProgramData%\Microsoft\Windows Defender\Platform\<antimalware platform version>. If that path doesn't exist, it goes to%ProgramFiles%\Windows Defender.(set "_done=" & if exist "%ProgramData%\Microsoft\Windows Defender\Platform\" (for /f "delims=" %d in ('dir "%ProgramData%\Microsoft\Windows Defender\Platform" /ad /b /o:-n 2^>nul') do if not defined _done (cd /d "%ProgramData%\Microsoft\Windows Defender\Platform\%d" & set _done=1)) else (cd /d "%ProgramFiles%\Windows Defender")) >nul 2>&1 MpCmdRun.exe -Scan -ScanType 1
For more information about MpCmdRun and the different -ScanType values, see Configure and manage Microsoft Defender Antivirus with the MpCmdRun command-line tool.
Use Windows Management Instrumentation (WMI) to run a scan
Use the Start method of the MSFT_MpScan class.
For more information about which parameters are allowed, see Windows Defender WMIv2 APIs
Tip
If you're looking for Antivirus related information for other platforms, see:
- Set preferences for Microsoft Defender for Endpoint on macOS
- Microsoft Defender for Endpoint on Mac
- macOS Antivirus policy settings for Microsoft Defender Antivirus for Intune
- Set preferences for Microsoft Defender for Endpoint on Linux
- Microsoft Defender for Endpoint on Linux
- Configure Defender for Endpoint on Android features
- Configure Microsoft Defender for Endpoint on iOS features
