Run Windows Defender Scan via Command Prompt on Windows 11

Scan your PC with Windows Defender Using Command Line

Windows Defender Scan via Command Prompt: It is an Integrated Advanced Security Feature from the Microsoft that protects our Windows 11 from various potential threats. There are different ways to access Windows Defender on Windows 11 such as via the Control Panel, via the Windows Settings, etc. However, it is possible to run Windows Defender Scan via Command Line using Command Prompt. In this article we will check out How to use Command Prompt and Windows PowerShell and run various Windows Defender Scans on Windows 11.

Run Full Scan, Quick Scan, & Custom Windows Defender Scan via Command Prompt

Just like we run Full Scans, Quick Scans, and Custom Scans in the Windows Defender GUI Interface, we can also do the same via the Command Prompt. The following are the steps.

Run Windows Defender Full Scan using Command Prompt

Execute cmd in the Run Command
Execute cmd in the Run Command
Navigate to the Windows Defender Directory
Navigate to the Windows Defender Directory
Windows Defender Full Scan CMD Command
Windows Defender Full Scan CMD Command
The Scan has Started
The Scan has Started

Run Windows Defender Quick Scan using the Command Prompt

In this section, we will check out how to run Windows Defender Quick Scan using the Command Line.

Navigate to the Windows Defender Directory
Navigate to the Windows Defender Directory
Windows Defender Quick Scan Command
Windows Defender Quick Scan Command
Quick Scan Finished
Quick Scan Finished

Note: If you want to log the scan results, then you can add -Log Flag to the above Commands. For Example, for running Quick Scan with Log File, execute the following command. MpCmdRun.exe -Scan -ScanType 1 -Log ScanLog.txt

Run Windows Defender Custom Scan using the Command Prompt

Navigate to the Windows Defender Directory
Navigate to the Windows Defender Directory
CMD Command to run Custom Scan
CMD Command to run Custom Scan
Scanning Found No Threats
Scanning Found No Threats

Run Offline Scan using the Command Prompt on Windows 11

An Offline Scan in Windows Defender refers to a specialized type of scan that runs outside the regular Windows environment. It is designed to detect and remove deeply embedded or advanced threats, such as rootkits or boot sector viruses, which might evade detection during regular scans because they load into memory along with the operating system. The following are the steps.

CMD Command to run Windows Defender Offline Scan
CMD Command to run Windows Defender Offline Scan

IMPORTANT: When you initiate an offline scan, the computer reboots into a secure, minimal environment created by Windows Defender.

Run Windows Defender Scheduled Scan using the Command Prompt

The command to run Scheduled Windows Defender Scan using the Command Line as follows.

CMD Command to run Windows Defender Scheduled Scan
CMD Command to run Windows Defender Scheduled Scan

Update Virus Definitions using the Command Prompt

Command to Update Virus Definitions
Command to Update Virus Definitions
Signature Update Finished
Signature Update Finished

Different Types of Windows Defender Scans & their related Flags on Windows 11

Scan TypeFlagDescription
Quick Scan-Scan -ScanType 1Checks common threat locations.
Full Scan-Scan -ScanType 2Comprehensive scan of all files and drives.
Custom Scan-Scan -ScanType 3 -File <path>Scans a specific file or folder.
Offline Scan-Scan -ScanType 4Reboots to scan in a secure environment.
Scheduled Scan-Scan -ScheduleJobRuns at the next scheduled time.
Signature updation-SignatureUpdateUpdates Virus definitions

Take away

For everyday users, Running Windows Defender Scan via Command Prompt may seem like a complex task, these methods can be invaluable for power users, and administrators to take full control of their System Security. It can also be beneficial for users where Graphical User Interface is not available. If you have any queries, kindly let us know in the comment section. For more awesome articles, stay tuned to Winsides.com. Safe Computing! Peace out!

Exit mobile version