How to run Microsoft Defender full virus scan on Windows 11

You can run a full virus scan with Microsoft Defender in three ways using Windows Security, Command Prompt, and PowerShell.

Windows 11 Microsoft Defender Antivirus full scan
Windows 11 Microsoft Defender Antivirus full scan

On Windows 11, Microsoft Defender Antivirus is always running in the background to detect and remove virtually any kind of malware, such as viruses, ransomware, spyware, rootkits, and others. Also, the security feature can proactively protect the device against hackers and other threats. However, sometimes, you may still have to perform a full virus scan manually to ensure that nothing suspicious is infecting Windows 11.

When Windows 11 is responding slow and sluggish, or you suspect that a type of malware has infected the computer, the antivirus includes three different scans (quick, custom, and full) that you can use with the Windows Security app, Command Prompt, and PowerShell.

This guide will teach you the steps to perform a complete virus scan using the built-in anti-malware solution on Windows 11.

Run a full virus scan on Windows 11 

To perform a full virus scan on Windows 11, use these steps:

  1. Open Start on Windows 11.

  2. Search for Windows Security and click the top result to open the app.

  3. Click on Virus & threat protection.

  4. Under the “Current threats” section, click on Scan options.

    Windows Security

  5. Select the Full scan option to check the entire system for viruses and any other type of malware.

    Full virus scan

  6. Click the Scan now button.

Once you complete the steps, Microsoft Defender Antivirus will scan the computer for viruses and other types of malware. If anything is detected, the antivirus will remove (or quarantine) the threats automatically.

Run a full virus scan with Command Prompt

To run a Microsoft Defender Antivirus scan with commands, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to locate the latest version of Microsoft Defender Antivirus installation and press Enter:

    cd C:\ProgramData\Microsoft\Windows Defender\Platform\4*
  4. Type the following command to run a full virus scan and press Enter:

    mpcmdrun -scan -scantype 2

    Microsoft Defender full scan command

After you complete the steps, Microsoft Defender will scan, detect, and remove any malware on the computer. You will notice the “Start scanning” messages as you execute the command. Once the scan is complete, the “Scan finished” message will return on the screen.

Run a full virus scan with PowerShell

To start a full virus scan with PowerShell, use these steps:

  1. Open Start.

  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.

  3. Type the following command to start a full malware scan and press Enter:

    start-mpscan -scantype fullscan

    Microsoft Defender PowerShell full scan command

Once you complete the steps, the antivirus will perform a full scan on Windows 11 to remove any malware.

About the author

Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 14 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me. Email him at [email protected].