To run a Microsoft Defender Offline scan, open Windows Security, go to Virus & threat protection > Scan options, select Microsoft Defender Offline scan and choose Scan now. You can also run Start-MpWDOScan in an administrator PowerShell window; either way your PC restarts, scans for about 15 minutes before Windows loads, then restarts again.
Save your work and close your programs first. The restart begins right after you confirm, and there is no way to carry on working while the scan runs.
What a Microsoft Defender Offline scan is
Microsoft describes Defender Offline as an anti-malware scanning 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 find malware that tries to hide from the Windows shell. Microsoft's examples are viruses and rootkits that infect or overwrite the master boot record (MBR). Its documentation says the scan's protection focuses on firmware and rootkits.
That is why it is a second step, not a replacement for a normal scan. A threat that is running inside Windows can interfere with a scan that also runs inside Windows. An offline scan starts before that threat gets a chance to load. Microsoft suggests using it if you suspect an infection, or to confirm a thorough clean after a malware outbreak. For the full cleanup routine, see how to delete a virus from your computer.
Windows may also ask for it. If Microsoft Defender Antivirus decides an offline scan is needed, it shows a notification on the device and in the Windows Security app.
Check the requirements first
Go through this list before you start. The first three items are the ones that most often cause a scan to fail or stall.
- Defender must be your main antivirus. Microsoft Defender Antivirus cannot be in passive mode, which is what happens when another antivirus is installed. To see which product is active, read what antivirus you have.
- You need a local administrator account. Microsoft requires users to be signed in with local administrator privileges.
- The Windows Recovery Environment (WinRE) must be enabled. If it is disabled, the scan does not run and no error is shown.
- Suspend BitLocker if it protects the system drive. Otherwise you may be asked for your BitLocker recovery key when the PC restarts into the offline environment.
- Supported hardware: x64 Windows 11, and x64 or x86 Windows 10. Microsoft says it does not apply to ARM Windows 11, ARM Windows 10 or Windows Server SKUs.
Check WinRE from an administrator Command Prompt or PowerShell window:
reagentc /info
Look at the Windows RE status line. If it says Disabled, turn it on:
reagentc /enable
Also update Defender before you start. The offline scan uses the latest definitions, so open Windows Security, go to Virus & threat protection > Protection updates and check for updates.
How to run the offline scan from Windows Security
This works on Windows 11 and on Windows 10 version 1607 or newer.
- Open the Windows Security app.
- Select Virus & threat protection, then Scan options.
- Select the Microsoft Defender Offline scan option and select Scan now. Microsoft's support page words the button as Start an offline scan, so the label may differ slightly between Windows builds.
- A prompt asks you to save your work. Save it, then select Scan.
- A User Account Control prompt asks for permission to make changes to your device. Select Yes.
- A final prompt says you will be signed out and Windows will shut down in less than a minute.
The PC then restarts into a Microsoft Defender Antivirus scan screen. The scan starts from C:\ProgramData\Microsoft\Windows Defender\Offline Scanner, and the interface looks different from a normal scan. Leave it alone. When the scan completes, the PC restarts and Windows loads as usual.
How to run it with PowerShell
Open PowerShell as administrator and run the cmdlet, which has no required parameters:
Start-MpWDOScan
Microsoft's reference says it starts a Windows Defender offline scan on the computer where you run it, causing the computer to start in Windows Defender Offline and begin the scan. Expect the restart to happen right away. The cmdlet also accepts -CimSession to target a remote computer, which is useful for administrators, and -AsJob to run it as a background job. For a single home PC you will not need either.
Microsoft documents a third method for administrators: the MSFT_MpWDOScan WMI class. Its example command is:
wmic /namespace:\\root\Microsoft\Windows\Defender path MSFT_MpWDOScan call Start
This also restarts the endpoint immediately. The wmic tool is deprecated in current Windows releases, so the PowerShell cmdlet is the better choice on a modern PC.
Where to find the results
After Windows loads again, open Windows Security > Virus & threat protection > Scan options > Protection history. Microsoft's support page names Protection history as the place for offline scan results. Each entry shows what was detected and what action Defender took, and you can open it for details.
To confirm that a scan was actually scheduled, use Event Viewer. Go to Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational and look for event ID 2030. Microsoft's description is: "Microsoft Defender Antivirus downloaded and configured Microsoft Defender Antivirus (offline scan) to run on the next reboot." On versions older than Windows 10 2004, the equivalent event is ID 5007, with the new value HKLM\SOFTWARE\Microsoft\Windows Defender\Scan\OfflineScanRun = 0x0.
You can read the same log from PowerShell. This is a read-only query:
Get-WinEvent -FilterHashtable @{LogName='Microsoft-Windows-Windows Defender/Operational'; Id=2030} -MaxEvents 5
If it returns no events, no offline scan was configured recently. That points back to a WinRE or permissions problem, not to a clean result.
Offline scan, quick scan or full scan?
| Scan | Where it runs | What it covers | Restart |
|---|---|---|---|
| Quick scan | Inside Windows | The parts of the system most likely to be affected | No |
| Full scan | Inside Windows | Every file and program on the device | No |
| Custom scan | Inside Windows | Only the files and folders you choose | No |
| Microsoft Defender Offline scan | Before Windows loads, in WinRE | Persistent malware that hides from or defends itself against a running Windows | Yes, twice |
According to Microsoft's support page, Defender Offline loads and performs a quick scan in the Windows Recovery Environment. It is a targeted tool for stubborn threats, not a way to scan every file. If you want a deep scan of all your files, run a full scan inside Windows.
Windows 7 SP1 and Windows 8.1: bootable media
These systems have no one-click option, and both are out of support. Microsoft's page still documents the older route: download the 64-bit (msstool64.exe) or 32-bit (msstool32.exe) tool and run it to build a CD, DVD or USB drive. You need at least 250 MB of free space. Two cautions from Microsoft: build the media on a PC that is not infected, because malware can interfere, and a USB drive is reformatted and its data erased. Then boot the target PC from that media. You may have to press a key for the boot menu or change the boot order in UEFI or BIOS.
If the scan does not start or fails
- Nothing happens after you select Scan. Check WinRE with
reagentc /infoand enable it if needed. This is the cause Microsoft documents for a silent failure. - A BitLocker recovery key screen appears. Enter your recovery key to continue. Next time, suspend BitLocker protection before you start the scan.
- A blue screen with a Stop error appears. Microsoft advises restarting the device and trying the offline scan again. If the blue screen happens again, contact Microsoft Support.
- The option is missing or does nothing. Confirm you are on a supported x64 or x86 edition of Windows 10 or 11, that Defender is your active antivirus, and that you are signed in as an administrator.
This page reflects Microsoft's documentation as of November 2026. Menu wording changes between Windows builds, so if a label does not match exactly, look for the nearest equivalent under Scan options.
Frequently asked questions
- How long does a Microsoft Defender Offline scan take?
- Microsoft's documentation says the scan takes about 15 minutes. The PC then restarts on its own and loads Windows normally. Save your work first, because the restart starts as soon as you confirm the scan.
- Why did nothing happen when I started the offline scan?
- The most likely cause is that the Windows Recovery Environment (WinRE) is disabled. Microsoft states that in this case the scan does not run, no error is shown, and nothing happens even after a manual restart. Run reagentc /info to check, and reagentc /enable in an administrator window to turn it on.
- Does Microsoft Defender Offline delete malware automatically?
- The scan runs outside the normal Windows environment and acts on what it finds. You review the outcome afterwards in Windows Security under Protection history. Check that list for anything you want to restore or investigate further.
- Can I run Microsoft Defender Offline on Windows Server or an ARM PC?
- No. Microsoft lists ARM Windows 11, ARM Windows 10 and Windows Server SKUs as not supported. It supports x64 Windows 11 and x64 or x86 Windows 10.