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.
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.
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.
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.
Sign in as an administrator. Microsoft lists local administrator privileges as a requirement.
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.
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
Open the Windows Security app from Start.
Select Virus & threat protection.
Under Current threats, select Scan options.
Choose Microsoft Defender Antivirus (offline scan) (Microsoft Learn calls it Microsoft Defender Offline scan) and select Scan now.
When asked to save your work, do so, then select Scan.
Approve the User Account Control prompt by selecting Yes.
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:
Open Windows Security > Virus & threat protection.
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.