

How to perform offline virus scan with Microsoft Defender

Start-MpScan -ScanType CustomScan -ScanPath "C:\Users\user\Downloads"Īfter you complete the steps, Microsoft Defender will only scan for viruses in the location you specified. In the command, make sure to update the path with the folder location you want to scan.įor example, this command scans the Downloads folder:

Start-MpScan -ScanType CustomScan -ScanPath PATH\TO\FOLDER-FILES Type the following command to perform a custom Microsoft Defender Antivirus scan and press Enter: To set up a custom scan using PowerShell, use these steps: How to perform custom virus scan with Microsoft Defender Once you complete the steps, the antivirus for Windows 10 will scan the entire system for any malware and malicious code. Type the following command to start a full virus scan and press Enter: To complete a full scan using commands on Windows 10, use these steps: How to perform full virus scan with Microsoft Defender Type the following command to start a quick virus scan and press Enter:Īfter you complete the steps, Microsoft Defender Antivirus will perform a quick virus scan on your device. To complete a quick scan using PowerShell, use these steps: How to perform quick virus scan with Microsoft Defender Once you complete the steps, if new updates are available, they will download and install on your device. Type the following command to check to update Microsoft Defender Antivirus and press Enter: To use PowerShell to update Microsoft Defender Antivirus with the latest definition, use these steps: How to check for updates on Microsoft Defender In addition to checking whether the antivirus is running, the command output also displays other important information, such as the version of the engine and product version, real-time protection status, last time updated, and more. Type the following command to see the Microsoft Defender Antivirus status and press Enter:Ĭonfirm the AntivirusEnabled is reads True to know if the security solution is running.

