How to Use PowerShell to Scan Windows 10

:globe_with_meridians: How to Launch Powershell in Windows 10?

:point_right: Search for ‘Powershell’ on Windows Search.

:point_right: Right-click on the Powershell and select ‘Run as administrator’

:small_blue_diamond: Step 1: Check Defender Status

:point_right: You need to ensure that Microsoft Defender is running on your device. If you are using any other security program other than Microsoft Defender, this method won’t work. You need to disable all third-party security suites to scan the computer with Microsoft Defender.


:point_right:This command will list every detail of Microsoft Defender. If the Microsoft Defender is running on your system, it would show ‘True’ on the AntivirusEnable field.

:small_blue_diamond: Step 2: Update Microsoft Defender

:point_right: If you timely install all Windows 10 updates, you don’t need to follow this method. However, if you don’t update Windows 10, then yo might need to update the Microsoft Defender application. To update Microsoft defender, execute the command –


:small_blue_diamond: Step 3: Running a Full Virus Scan

:point_right: The full scan checks every file on your Windows PC; hence, it takes time to complete the full scan. To perform a full antivirus scan, execute the command-

Start-MpScan -ScanType FullScan

:point_right: Since the full scan takes time to complete, you can force Microsoft defender to perform the scan in the background. To do that, execute the command.

Start-MpScan -ScanType FullScan -AsJob

:small_blue_diamond: Step 4: Run a Quick Scan using PowerShell

:point_right: To run a Quick Antivirus scan using Powershell, execute the command given below and hit the enter button.

Start-MpScan -ScanType QuickScan

:white_check_mark: That’s it, you’re Done. This tutorial will help you use Powershell as well as Defend from virus and malware.