Skip to content

How-ToOS

How to Run a Microsoft Defender Offline Scan in Windows 11

How to run a Microsoft Defender Offline scan in Windows 11: what it does compared with quick, full and custom scans, the checks to make first (BitLocker, WinRE, admin rights, updates), the Windows Security and PowerShell steps, where to find results and how to fix common problems.

By , Systems & Technical Editor

6 min read

How to Run a Microsoft Defender Offline Scan in Windows 11

It's based on Microsoft's Defender documentation on Microsoft Learn and Microsoft Support's Windows Security pages, all read on 24 November 2026. Menu wording can change between Windows updates.

Most of the time, Microsoft Defender Antivirus quietly scans files as you open and download them. But some malware is designed to hide from, or fight back against, antivirus software while Windows is running. For those cases, Windows 11 has a built-in Microsoft Defender Offline scan (shown in Windows Security as Microsoft Defender Antivirus (offline scan)). It restarts your PC and scans it before Windows has fully loaded, so persistent malware has a much harder time hiding.

You don't need to download anything or make a USB stick on Windows 11. Here's how it works and how to run it.

What an offline scan is, and how it differs from other scans

Microsoft describes Microsoft Defender Offline as an anti-malware tool that lets you boot and run a scan from a trusted environment. The scan runs from outside the normal Windows kernel, so it can target malware that tries to bypass the Windows shell, such as viruses and rootkits that infect or overwrite the master boot record (MBR). Microsoft says the offline scan's protection focuses on firmware and rootkits.

The Windows Security app offers four scan types:

Scan

What Microsoft says it does

When to use it

Quick scan

Useful when you don't want to spend the time running a full scan; Windows Security will tell you if it recommends another type

Routine check

Full scan

Scans every file and program on your device

You want a thorough check while still using the PC

Custom scan

Scans only the files and folders you select

Checking a download folder or a USB drive

Microsoft Defender Antivirus (offline scan)

Uses the latest definitions, runs after a restart without loading Windows, so persistent malware has a harder time hiding or defending itself

You suspect an infection that normal scans can't remove

Microsoft's support page says the offline scan loads in the Windows Recovery Environment (WinRE) and performs a quick scan of your PC there, then restarts automatically when it's finished. Microsoft Learn says it takes about 15 minutes.

When you should run one

Microsoft suggests running an offline scan when:

  • You're concerned your device has been exposed to malware or a virus.

  • You want to confirm a thorough clean after an infection.

  • Defender itself prompts you to run one. Microsoft says Defender can show a notification if it decides an offline scan is needed.

In our view, it's also a sensible next step if a threat keeps coming back after Defender says it has removed it, or if security settings seem to change without you touching them.

Before you start

Work through this checklist first. Skipping the BitLocker step is the most likely way to get stuck.

  1. Save your work and close programs. The scan restarts the PC, and Microsoft warns you'll be signed out and Windows will shut down in less than a minute after you confirm.

  2. Suspend BitLocker if it's on. Microsoft says that if BitLocker is enabled on the system drive, you should suspend it before running the offline scan, otherwise you may be asked for the BitLocker recovery key when the PC restarts into the offline environment. If you're not sure whether your drive is encrypted, check before you start. If you do get asked for a key, our guide to finding your BitLocker recovery key explains where it's likely to be.

  3. Make sure Defender is your active antivirus. Microsoft says Defender must be your primary antivirus (not in passive mode) to receive offline scan updates. If a third-party antivirus is installed, Defender turns itself off, so use that product's own rescue tools instead.

  4. Sign in as an administrator. Microsoft lists local administrator privileges as a requirement.

  5. Check that WinRE is enabled. This one catches people out. Microsoft says that if WinRE is disabled, the offline scan doesn't run and no error message is shown: nothing happens, even if you restart manually.

  6. Update Defender. In Windows Security, go to Virus & threat protection > Protection updates > Check for updates so the scan uses the latest security intelligence.

How to check WinRE (and turn it on)

Open Terminal (Admin) or an administrator Command Prompt and run:

reagentc /info

If the Windows RE status shows Disabled, Microsoft says you can enable it with:

reagentc /enable

How to suspend BitLocker for one restart

The quickest way is PowerShell, run as administrator:

Suspend-BitLocker -MountPoint "C:" -RebootCount 1

Microsoft's documentation for Suspend-BitLocker says that with a RebootCount of 1 (which is also the default if you leave the parameter out), protection resumes automatically after the next restart. As the offline scan restarts the PC once into the scanner and again back into Windows, you may want to set the count to 2, or check afterwards and resume protection with Resume-BitLocker -MountPoint "C:". Don't use -RebootCount 0 unless you plan to resume it yourself, because Microsoft says that leaves protection suspended until you do.

How to run an offline scan from Windows Security

  1. Open the Windows Security app from Start.

  2. Select Virus & threat protection.

  3. Under Current threats, select Scan options.

  4. Choose Microsoft Defender Antivirus (offline scan) (Microsoft Learn calls it Microsoft Defender Offline scan) and select Scan now.

  5. When asked to save your work, do so, then select Scan.

  6. Approve the User Account Control prompt by selecting Yes.

  7. A final message warns you that you'll be signed out and Windows will shut down in less than a minute.

The PC restarts into the offline scanner. Microsoft notes the interface looks different from a normal Defender scan. Leave it alone until it finishes; it restarts and Windows loads normally afterwards.

How to run it with PowerShell

If you prefer the command line, open PowerShell as administrator and run:

Start-MpWDOScan

Microsoft's cmdlet reference says this starts a Windows Defender offline scan on the computer where you run it, and the computer then starts in Windows Defender Offline and begins the scan. Save everything first, as with the app.

Where to find the results

When Windows is back up:

  1. Open Windows Security > Virus & threat protection.

  2. Select Protection history.

Microsoft's support page says the offline scan results are shown in Protection history. Anything found will be listed with the action taken.

To confirm an offline scan was actually set up, open Event Viewer and go to Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational. Microsoft says you'll see Event ID 2030, stating that Defender downloaded and configured the offline scan to run on the next reboot.

Troubleshooting

Problem

What to try

The PC restarts but no scan runs

Check WinRE with reagentc /info and enable it, as Microsoft says the scan silently does nothing if WinRE is disabled

Asked for a BitLocker recovery key

Enter the key (see our BitLocker guide), and suspend BitLocker before running the scan next time

Blue screen during the scan

Microsoft says to restart and try the offline scan again, and contact Microsoft Support if it happens again

Offline scan option missing

Microsoft says the offline scan doesn't apply to Arm versions of Windows 11, and Defender must be your active antivirus

If malware keeps returning after an offline scan, it's time to think about a clean start. Our guides to resetting Windows 11 and checking what runs at startup with Autoruns can help.

Our verdict

An offline scan is Defender's heavy-duty option for malware that hides while Windows is running. Save your work, suspend BitLocker, make sure WinRE is enabled, update Defender, then go to Windows Security > Virus & threat protection > Scan options > Microsoft Defender Antivirus (offline scan) > Scan now, or run Start-MpWDOScan. Microsoft puts the scan at about 15 minutes, and the results appear in Protection history. It's free, built in and worth knowing about before you ever need it.

The bottom line

An offline scan is Defender's heavy-duty option for malware that hides while Windows is running. Save your work, suspend BitLocker, make sure WinRE is enabled, update Defender, then go to Windows Security > Virus & threat protection > Scan options > Microsoft Defender Antivirus (offline scan) > Scan now, or run `Start-MpWDOScan`. Microsoft puts the scan at about 15 minutes, and the results appear in Protection history. It's free, built in and worth knowing about before you ever need it.

Sources

  1. 01Microsoft Learn: Run and review the results of a Microsoft Defender Offline scan
  2. 02Microsoft Support: Virus and Threat Protection in the Windows Security App
  3. 03Microsoft Learn: Start-MpWDOScan (Defender)

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Set Up a UPS to Shut Down Your PC Automatically

How-To

How to Set Up a UPS to Shut Down Your PC Automatically

How to make a UPS shut your PC down automatically in a power cut: connect the UPS's USB data cable, install the maker's software (CyberPower PowerPanel Personal as the example), choose Keep Computer Running or Preserve Battery Power, pick shutdown or hibernation, then test it.

Marcus Thorne7 min

Clonezilla vs Rescuezilla: Which Free Disk Imaging Tool Should You Use?

Versus

Clonezilla vs Rescuezilla: Which Free Disk Imaging Tool Should You Use?

Clonezilla vs Rescuezilla: both are free bootable disk imaging and cloning tools that share an image format. Clonezilla adds network destinations, encryption, scripting and mass deployment; Rescuezilla offers a point-and-click desktop, image browsing and extra rescue tools.

Callum Reid6 min

ShareX vs Snipping Tool: Which Free Screenshot Tool Should You Use?

Versus

ShareX vs Snipping Tool: Which Free Screenshot Tool Should You Use?

ShareX vs Snipping Tool: Windows' built-in Snipping Tool is quick and now does local OCR and video snips, while free, open-source ShareX adds scrolling captures, richer annotation, automated after-capture tasks, uploads and many extra tools. Here's which suits you.

Callum Reid7 min

How to Set Up SillyTavern with a Local LLM Using KoboldCpp

How-To

How to Set Up SillyTavern with a Local LLM Using KoboldCpp

How to set up SillyTavern with a local LLM: installing it on Windows or Linux, loading a GGUF model in KoboldCpp, connecting the two, tuning GPU layers to fit your graphics card's VRAM, adjusting context settings and fixing common problems.

Marcus Thorne8 min