Skip to content

How to Scan Your Device for Malware in Windows 11 and 10

Manya Lyalya
How to Scan Your Device for Malware in Windows 11 and 10

To scan your device for malware in Windows 11 or 10, select Start, type Windows Security, open the app and select Virus & threat protection > Quick scan. For a deeper check, select Scan options, choose Full scan, Custom scan or Microsoft Defender Antivirus (offline scan), then select Scan now.

Microsoft Defender Antivirus, the antivirus inside Windows Security, already checks files in real time and runs scheduled scans on its own. A manual scan is worth running when something seems wrong: the PC suddenly runs much slower, battery life drops sharply, data usage jumps, unexpected ads or pop-ups appear, or your browser sends you to sites you didn’t open. Run one again after a cleanup to confirm the infection is gone.

Quick, full, custom or offline: which virus scan to run

Scan type What it checks When to use it
Quick scan The places malware is most likely to hide: running processes, memory, user profiles, registry keys and Windows startup folders, plus any USB drive that’s plugged in. Your first check whenever you suspect a problem. Microsoft says a quick scan is enough in most cases, because real-time protection already checks files as they’re opened.
Full scan Runs a quick scan first, then checks every file and program on your drives. The quick scan came back clean but the symptoms continue, or you believe the PC is infected. It can take hours, and the PC may feel slower while it runs.
Custom scan Only the drives, folders or files you choose. Checking a USB stick, a download or a single folder.
Microsoft Defender Antivirus (offline scan) Restarts the PC and scans from the Windows Recovery Environment before Windows loads, so persistent malware such as rootkits has a harder time hiding. Takes about 15 minutes. A threat keeps coming back, Windows Security recommends it, or you want the most thorough check. Not supported on Arm-based PCs.

A scan uses the security intelligence (virus definitions) installed when it starts, so check for updates first. If newer definitions arrive during a long full scan, they only apply to the next scan.

How to run a virus scan in Windows 11

  1. Select Start, type Windows Security and open the app. You can also press Win + I and go to Privacy & security > Windows Security > Virus & threat protection.
  2. Select Virus & threat protection (the shield icon) if it isn’t already open.
  3. Under Virus & threat protection updates, select Protection updates > Check for updates, then go back.
  4. Under Current threats, select Quick scan. If Windows Security thinks you need a deeper scan, it tells you when the quick scan finishes.
  5. For a deeper scan, select Scan options under Current threats, pick Full scan, Custom scan or Microsoft Defender Antivirus (offline scan), and select Scan now. For a custom scan, choose the drive or folder to check.
  6. When the scan ends, Current threats shows the result: when the scan ran, how long it took, how many files it checked and any threats it found.

To check one file or folder, right-click it in File Explorer, select Show more options, then select Scan with Microsoft Defender. The result opens on the Scan options page.

How to run a virus scan in Windows 10

The Windows Security app works the same way in Windows 10. Only the route through Settings and the right-click menu are different.

  1. Select Start, type Windows Security and open the app, or go to Start > Settings > Update & Security > Windows Security > Virus & threat protection.
  2. Under Virus & threat protection updates, select Protection updates > Check for updates.
  3. Under Current threats, select Quick scan.
  4. For a deeper scan, select Scan options, choose Full scan, Custom scan or Microsoft Defender Antivirus (offline scan), and select Scan now.

To check one file or folder, right-click it in File Explorer and select Scan with Microsoft Defender.

Older Windows 10 builds call the app Windows Defender Security Center. If your PC runs Windows 10 in S mode, the Virus & threat protection page shows fewer options, because S mode already prevents viruses and other threats from running.

How to run a Microsoft Defender Offline scan

The offline scan restarts your PC and runs outside Windows, which lets it catch malware that hides or defends itself while Windows is running. Before you start:

  • Save your work and close your apps, because the PC restarts to run the scan.
  • Use an account with administrator rights.
  • If BitLocker is turned on for drive C:, suspend it in Control Panel > System and Security > BitLocker Drive Encryption > Suspend protection. Otherwise Windows may ask for your BitLocker recovery key when it restarts into the scan. Protection stays off until you select Resume protection in the same place, so turn it back on afterward.
  • Microsoft Defender Offline isn’t supported on Arm-based Windows 11 or Windows 10 PCs.
  1. Open Windows Security and select Virus & threat protection.
  2. Under Current threats, select Scan options.
  3. Select Microsoft Defender Antivirus (offline scan), called Microsoft Defender Offline scan on some versions, then select Scan now.
  4. When Windows reminds you to save your work, select Scan. In the prompt that asks for permission to make changes to your device, select Yes.
  5. Windows signs you out and shuts down in less than a minute. The scan runs in the Windows Recovery Environment, takes about 15 minutes, and then restarts the PC into Windows.
  6. Open Windows Security > Protection history to see what the scan found.

Run a virus scan from PowerShell

This is useful when the Windows Security window won’t open but Microsoft Defender Antivirus is still your active antivirus. Select Start, type powershell, right-click Windows PowerShell, select Run as administrator, and run the command you need:

  • Update-MpSignature downloads the latest security intelligence.
  • Start-MpScan -ScanType QuickScan runs a quick scan.
  • Start-MpScan -ScanType FullScan runs a full scan.
  • Start-MpScan -ScanType CustomScan -ScanPath "D:" scans one drive, folder or file. Replace D: with the path you want.
  • Start-MpWDOScan starts a Microsoft Defender Offline scan and restarts the PC to run it, so save your work first.

What to do when Windows Security finds a threat

Most detections need nothing from you: Microsoft Defender Antivirus blocks or quarantines the item by itself. When it needs a decision, or you want to see what happened, use Protection history. You need administrator rights to see threat details, and events stay in the list for two weeks.

  1. Open Windows Security and select Protection history.
  2. Select a card to expand it. Red cards need attention now. Yellow cards aren’t urgent, but check them when you can.
  3. Select Actions and choose what to do with the item.
Option What it does Choose it when
Quarantine Moves the file to a safe location and blocks it from running. You aren’t sure whether the file is harmful. Microsoft recommends Quarantine whenever you’re unsure.
Remove Deletes the file from your PC. The item is in quarantine and you don’t need it back.
Restore Puts a quarantined file back in its original location. Defender then detects it again and creates a new card asking you to decide. You’re confident the detection was a mistake.
Allow on device Lets the file run and stops alerts about it. Only when you trust the file and its publisher. If the file really is a threat, your data and device are at risk.

These are the cards you’re most likely to see:

  • Threat found – action needed: Defender needs you to choose between Quarantine and Allow on device.
  • Threat quarantined: the threat is blocked but not deleted yet. Select Remove or Restore.
  • Threat blocked: Defender already blocked and removed it, so there’s nothing to do. Think about how it arrived; email attachments, unsafe websites and infected USB drives are the usual routes.
  • Remediation incomplete: Defender started cleaning but couldn’t finish. Expand the card to see the extra steps, and see the troubleshooting section below.

If you allowed something by mistake, open Virus & threat protection, select Allowed threats under Current threats, select the item and then Don’t allow. Windows Security will act on it the next time it sees it. If you think Defender flagged a safe file or missed a harmful one, you can submit the file to Microsoft for analysis.

Windows 10 end of support: is your PC still protected?

Windows 10 reached end of support on October 14, 2025. Since then, Microsoft no longer provides feature updates or technical support for it, and security updates continue only for PCs enrolled in Extended Security Updates (ESU). As of November 2026, protection on Windows 10 looks like this:

Protection Status on Windows 10
Windows security updates without ESU Ended on October 14, 2025.
Consumer Extended Security Updates Critical and important security updates through October 12, 2027, for Windows 10 version 22H2 Home, Pro, Pro Education and Workstations. You can enroll any time until the program ends on that date.
Microsoft Defender Antivirus security intelligence updates Microsoft says these continue through October 2028.

Defender updates don’t fix security holes in Windows itself. Microsoft is explicit that antivirus alone isn’t enough without operating system security updates, and that Windows 10 devices are more vulnerable even with current definitions. If your PC meets the Windows 11 requirements, the upgrade is free: check under Start > Settings > Update & Security > Windows Update by selecting Check for updates. If it doesn’t, enroll in ESU:

  1. Go to Start > Settings > Update & Security > Windows Update. If the PC qualifies, you’ll see a link to enroll. The ESU licensing preparation update (KB5126256) is required, so install pending updates if the link doesn’t appear.
  2. Select Enroll now. If you sign in to Windows with a local account, you’ll be asked to sign in with a Microsoft account.
  3. Choose how to enroll: at no extra cost if you back up your PC settings with Windows Backup, by redeeming 1,000 Microsoft Rewards points, or with a one-time purchase of $30 plus tax. One ESU license covers up to 10 PCs.

Enrollment options can differ by region, for example in the European Economic Area. PCs joined to a work domain or enrolled in device management can’t use the consumer program. To check your status later, go back to Windows Update.

When a second-opinion malware scan makes sense

One up-to-date real-time antivirus is enough. Microsoft advises against running two real-time antivirus products at once: it slows the PC and can cause update errors such as 0x80070643. An on-demand scanner is different. It runs only when you start it, so it can sit next to whatever antivirus you use. A second opinion helps when:

  • Defender finds nothing, but the symptoms continue.
  • Another antivirus is your main protection and you want a check from a different engine without uninstalling it.
  • Windows Security won’t open or can’t finish a scan.
  • A detection ends in Remediation incomplete.

Microsoft’s own free tools cover these cases:

  • Microsoft Safety Scanner is a portable scanner (msert.exe). Download it from Microsoft, open it, choose a scan type and start the scan. It expires 10 days after download, so get a fresh copy for each scan. It doesn’t appear in the Start menu, so note where you saved it. Detailed results are in %SYSTEMROOT%debugmsert.log. When you’re done, delete the file. It doesn’t replace your antivirus.
  • Microsoft Defender Offline is the best choice for malware that hides while Windows is running. See the offline scan steps above.
  • Malicious Software Removal Tool looks only for specific, widespread malware families that are actively running, so it’s a narrow check rather than a full scan. To run it, press Win + R, type %windir%system32mrt.exe, select OK and follow the prompts.

Troubleshooting virus scans in Windows 11 and 10

Windows Security won’t open or a page isn’t available

  • On a PC managed by work or school, an administrator can hide the Virus & threat protection section or lock its settings, and those policies override local changes. Contact your IT department.
  • On your own PC, install pending updates. In Windows 11, go to Start > Settings > Windows Update. In Windows 10, go to Start > Settings > Update & Security > Windows Update. Then select Check for updates.
  • You can still scan without the Windows Security window by using the PowerShell commands above, or Microsoft Safety Scanner.

The scan options are greyed out or missing

  • Another antivirus is active. Windows Security shows that product instead of Defender’s scan options. See the next section.
  • The settings are managed. When Virus & threat protection settings come from Group Policy or another management tool, they appear greyed out on the PC.
  • Windows 10 in S mode shows fewer options by design.
  • The offline scan isn’t supported on Arm-based PCs.

Microsoft Defender is turned off because another antivirus is installed

This is by design. When a compatible third-party antivirus is installed and working, Microsoft Defender Antivirus turns itself off. It turns back on automatically if that product expires, goes out of date, stops working or is uninstalled. To see which product protects your PC, open Virus & threat protection and, under Who’s protecting me?, select Manage providers.

  • To keep the other antivirus: run your scans from that product. You can also select Microsoft Defender Antivirus options below its name on the Virus & threat protection page and turn on limited periodic scanning. Microsoft says this mode uses only a small part of Defender and can’t detect most malware, so treat it as a backup check, not a second antivirus.
  • To switch back to Defender: uninstall the other product. Defender should turn on again by itself. Confirm that Real-time protection is on under Virus & threat protection settings > Manage settings.

The virus scan is very slow or won’t finish

  • Full scans take a long time on large drives with many files, and archives such as ZIP files are the slowest to check. Microsoft says a full scan can take hours, or even days on drives with a lot of data.
  • Close every app you don’t need. For the best result, restart the PC and start the scan right away, before you open anything else.
  • Check the free space on drive C:. Defender needs disk space to quarantine and remove malware, and it may not finish removing a threat on a nearly full drive. If space is tight, free up storage space in Windows, check for protection updates and run the scan again.
  • If the PC freezes during a full scan, update your apps and Defender’s definitions, close non-essential apps and try again.

The offline scan doesn’t start

  • You need administrator rights, and Microsoft Defender Antivirus must be your active antivirus.
  • The scan runs from the Windows Recovery Environment. If that’s turned off, nothing happens and no error appears. Open Command Prompt as administrator and run reagentc /info. If the status is Disabled, run reagentc /enable and start the offline scan again.
  • If Windows asks for a BitLocker recovery key at restart, BitLocker wasn’t suspended. Suspend it before the next attempt, as described above.
  • If a blue screen appears during the offline scan, restart and try again. If it happens again, contact Microsoft Support.

The same threat keeps coming back

  • It’s arriving again. Malware returns if you visit the site that hosts it or receive it again by email. Avoid sites that offer illegal downloads, and use a browser with Microsoft Defender SmartScreen, such as Microsoft Edge, to block sites with a poor reputation.
  • A hidden component reinstalls it. If the threat reappears right after a restart, an undetected piece of malware is probably putting it back. Run a Microsoft Defender Offline scan.
  • Nothing clears it. Reset the PC. In Windows 11, go to Start > Settings > System > Recovery and select Reset PC. In Windows 10, go to Start > Settings > Update & Security > Recovery and select Get started under Reset this PC. Restore files from a backup made before the infection and stored somewhere else, such as OneDrive, because backups kept on the infected PC may have been changed. Then install all updates.

Remediation incomplete or a threat was only partially removed

  1. Expand the card in Protection history and follow the extra steps it lists.
  2. Run the Malicious Software Removal Tool: press Win + R, type %windir%system32mrt.exe, select OK, select Yes if Windows asks for permission, then run a full scan and follow the prompts.
  3. Restart the PC and install the latest updates.
  4. If the threat is still reported, run a Microsoft Defender Offline scan.

Frequently Asked Questions

Related Articles