I tried the “Microsoft Defender Antivirus (offline scan)” option in Windows Security. The PC restarted, a scan window appeared before Windows loaded, and about six and a half minutes later I was back at my normal desktop. Microsoft says the offline scan takes about 15 minutes, so I wondered whether it had really scanned anything, or whether it had quietly failed. I dug through the logs on my PC to find out.
Short answer: an offline scan that finishes in a few minutes is normal. It runs a quick scan, and on my PC the scan itself took about 5 minutes. Afterwards, Windows doesn’t update the “last scan” time, but the result is written to a log file called msssWrapper.log, which you can read without admin rights. If instead the PC restarts and goes straight back to Windows with no scan screen, the usual suspects are a disabled Windows Recovery Environment (WinRE), BitLocker, or another antivirus product.
The times and log lines below are from a real offline scan I ran in November 2026 on Windows 11 Pro (26H2). The requirements and steps follow Microsoft’s documentation, linked at the end.
Jump to the part that matches your problem:
- The PC restarts but goes straight back to Windows: “The PC restarts but the scan never starts”
- It finished in minutes, and you’re not sure it worked: “Finishing quickly is normal” and “How to check the result afterwards”
- It seems stuck: “The scan seems to never finish”
- What is an offline scan, and when should you use it?: the next section
- What an offline scan is, compared with the other scans
- How to run an offline scan
- The PC restarts but the scan never starts
- What I saw: back in Windows after about 6.5 minutes
- Finishing quickly is normal (it’s a quick scan)
- How to check the result afterwards
- The scan seems to never finish
- Summary
- References
What an offline scan is, compared with the other scans
Windows Security offers four kinds of scan under “Scan options”. Only the offline scan runs outside Windows: the PC restarts, and the scan runs without loading Windows. Microsoft explains that this makes it harder for persistent malware to hide or defend itself. It’s aimed at things like rootkits, which can stay hidden during a scan that runs while Windows is up.
| Scan | What it checks | When to use it | Time on my PC |
|---|---|---|---|
| Quick scan | The places malware usually hides | Everyday checks. Defender also runs one automatically | 3 to 4 minutes |
| Full scan | Every file and program on the PC | When you want everything checked | Long, depends on how much you have |
| Custom scan | Only the files and folders you pick | A downloaded file or a USB stick | Depends on the content |
| Offline scan | The same areas as a quick scan, with Windows not running | You suspect an infection, or want to confirm a cleanup | About 6.5 minutes (Microsoft says about 15) |
Microsoft suggests it when you’re worried your device may be infected, when you want to scan without an internet connection, or when you want to confirm a PC is clean after an infection. Because it needs a restart, it isn’t something you run every day. The automatic quick scan is enough for normal use.
How to run an offline scan
Save your open files first. The PC restarts about a minute after you start it.
- Open “Windows Security” in the Start menu
- Go to “Virus & threat protection” → “Scan options”
- Choose “Microsoft Defender Antivirus (offline scan)”, then click “Scan now”
- In the confirmation, click “Scan”, then “Yes”
From an admin PowerShell window, this one line does the same. It restarts the PC right away.
Start-MpWDOScan
The PC restarts but the scan never starts
If the PC restarts and simply boots back into Windows with no scan screen, these three conditions in Microsoft Learn are the most likely causes. A disabled WinRE is the sneaky one: nothing happens and no error appears.
- WinRE is disabled: the offline scan runs on top of the Windows Recovery Environment. Check it with
reagentc /infoin an admin Command Prompt. If it’s disabled,reagentc /enableturns it back on - BitLocker is on: suspend BitLocker protection first, or you may be asked for the recovery key during the restart
- Defender isn’t your main antivirus: if another product is the main one and Defender is in passive mode, the offline scan isn’t available
About the third point: my PC also has Norton installed, and Windows Security lists both. The offline scan still worked, because Defender wasn’t in passive mode. To check, run this in PowerShell. If AMRunningMode says Normal, you’re fine. Passive means Defender is standing back.
Get-MpComputerStatus | Select-Object AMRunningMode, AntivirusEnabled
What I saw: back in Windows after about 6.5 minutes
After the restart, a blue “Microsoft Defender Antivirus (offline scan)” box appeared over a “preparing recovery” screen. My PC runs Japanese Windows, so the text in these photos is Japanese.

Then a “scanning your PC” window showed the start time, the number of items scanned and the percent complete.

Here is the timeline I pieced together using the logs afterwards.
| Time | What happened |
|---|---|
| 23:01:14 | Clicked “Scan” → “Yes”. Defender set up the offline scan for the next boot and asked for a restart |
| 23:01:33 | Windows shut down |
| 23:02:25 | The scan started in the offline environment |
| 23:07:34 | The scan finished (0 threats) |
| 23:07:48 | Windows started normally |
About 6.5 minutes between the click and the desktop, and about 5 minutes of actual scanning. That’s well under the “about 15 minutes” on Microsoft Learn.
Finishing quickly is normal (it’s a quick scan)
It finished fast because the offline scan is a quick scan. Microsoft’s support page says the offline scan loads your PC into the Windows Recovery Environment and runs a quick scan. Defender’s own log on my PC (MPLog) agreed: the scan type was quick (ScanType:1), followed by “Quick scan finished with error 0”, meaning it completed without errors.
My regular quick scans take 3 to 4 minutes too. If your offline scan finished somewhere between a few minutes and 15 minutes and Windows then started by itself, it most likely worked. If you want every file checked, run a “Full scan” separately once you’re back in Windows.
How to check the result afterwards
The confusing part was that, back in Windows, I couldn’t find any sign the scan had happened:
- The last quick scan time in PowerShell (QuickScanEndTime in Get-MpComputerStatus) still showed my regular quick scan two days earlier
- Defender’s event log had no scan started / scan finished events (event IDs 1000 and 1001) for it
- The threat detection records (Get-MpThreatDetection) had nothing new either, which makes sense since nothing was found
The offline scan runs outside Windows, so Windows’ usual records don’t pick it up. The result was clearly recorded in two other places.
Check 1: read the result in msssWrapper.log
Open PowerShell and paste this line. No admin rights were needed on my PC. It shows the last 40 lines of the log.
Get-Content "C:\Windows\Microsoft Antimalware\Support\msssWrapper.log" -Tail 40
Near the time of your scan, look for these two lines. If both are there, the scan finished normally.
- Number of threats from scan: 0: how many threats were found. 0 means nothing
- Offline scan completed with 0x00000000: the scan finished without errors
On my PC the same log also showed an offline scan I’d run back in 2023, so it’s handy for checking whether you’ve ever run one.
The log also had a line saying “Unable to open the offline HKLM SOFTWARE hive 0x80070020”. Reading around it, that’s only a failure to write a “scanned” marker back to the registry after the scan. The scan result itself was 0x00000000 (success), so this line doesn’t mean the scan failed.
Check 2: confirm the scan was scheduled in the event log
Event ID 2030 in Defender’s event log tells you the offline scan was set up to run at the next restart. Microsoft Learn describes it the same way. It doesn’t contain the scan result. This line shows the five most recent ones:
Get-WinEvent -FilterHashtable @{LogName='Microsoft-Windows-Windows Defender/Operational'; Id=2030} -MaxEvents 5 | Format-List TimeCreated, Message
If there’s a 2030 at the time you clicked, scheduling worked. If msssWrapper.log then has nothing for that time, the scan didn’t run after the restart. Go back to the three checks in “The PC restarts but the scan never starts”.
The scan seems to never finish
The scan window shows a percent complete. Mine finished in about 5 minutes, but a PC with lots of files or an HDD can take longer. If the number keeps going up, even slowly, just wait.
The case Microsoft Learn covers is a blue screen (Stop error) during the offline scan. In that case, restart the PC and run the offline scan again. If it happens again, Microsoft says to contact their support.
Summary
- An offline scan runs with Windows not loaded, to catch malware that hides while Windows runs. It’s a quick scan, so finishing in minutes is normal. Mine took about 5 minutes
- Afterwards the last scan time doesn’t change. Check the result in
msssWrapper.logfor “Number of threats from scan” and “Offline scan completed with 0x00000000” - Event ID 2030 confirms the scan was scheduled
- If it never starts, check WinRE, BitLocker, and other antivirus software

Comments