
Some malware, such as rootkits, can hide from antivirus while Windows is running. Microsoft Defender Offline scan deals with this by restarting your PC and scanning it in a special environment before Windows starts, where the malware can’t defend itself. It’s built into Windows 11 and Windows 10, and it’s free.
When to use an offline scan
- Windows Security says it found malware it couldn’t fully remove.
- Your PC shows signs of infection, such as pop-ups, a changed browser homepage or security settings that turn themselves off.
- You want a deeper check after removing a suspicious program.
Before you start
Save your work and close all apps. The scan restarts the PC and takes about 15 minutes, sometimes longer. If your drive is encrypted with BitLocker, have your recovery key ready in case it’s requested.
How to run Microsoft Defender Offline scan
- Open the Start menu, search for Windows Security and open it.
- Click Virus & threat protection.
- Under Current threats, click Scan options.
- Select Microsoft Defender Antivirus (offline scan).
- Click Scan now.
- Confirm the restart message. If Windows asks for permission, click Yes.
The PC restarts into a blue scanning screen and shows the progress. When it finishes, Windows starts normally.
See the results
- Open Windows Security > Virus & threat protection.
- Click Protection history.
- Look for entries from the offline scan. Defender shows what it found and what action it took.
Run it with PowerShell
You can also start an offline scan from PowerShell as administrator:
Start-MpWDOScan
The PC restarts and runs the same scan.
Useful tips
- Update Defender first: in Virus & threat protection, click Protection updates > Check for updates.
- Run a Full scan afterwards for a complete check of all files.
- If you use another antivirus, Defender may be in passive mode, and the offline scan option may not be available.
Frequently asked questions
Will an offline scan delete my files?
No. It only removes or quarantines items detected as malware. Your normal files and apps are not touched.
Do I need the internet for an offline scan?
Not during the scan itself, but you should be online before starting so Defender can download the latest threat definitions.


