
Quick tip: You can re-apply the default scanning schedule with the option "8.".For instance, this command schedules the full scan for Saturdays: Set-MpPreference -RemediationScheduleDay 7

Available options include 0 (everyday), 1 through 7 (Monday through Sunday), and 8 (never). In the command, change the "DAY" for the day (number) you want to run the malware scan. Type the following command to remove active threats using Defender Antivirus and press Enter: Remove-MpThreat.To delete active threats on Windows 11, use these steps: How to remove active malware scan on Defender Antivirus Type the following command to run an offline Defender Antivirus scan and press Enter: Start-MpWDOScanĪfter you complete the steps, the system will restart automatically in the Windows Recovery Environment (WinRE), and the Microsoft Defender Antivirus will scan the system to detect and remove any threat affecting your installation.Īfter the scan, the system will restart automatically again, and you will be able to view the scan report on Windows Security > Virus & thread protection > Protection history.Search for PowerShell, right-click the top result, and select the Run as administrator option.

As a result, it's recommended to save your files and close your applications before proceeding.

How to run offline malware scan on Defender AntivirusĪn offline scan is a feature that allows you to scan, detect, and remove viruses that can't be deleted when the system is running. Once you complete the steps, the Windows 11 anti-malware will scan the locations you specified in the command.
