sodcalculator

10 Tech How-To

Windows Security Offline Scan Not Working? Fixes

Guide 10-51424 · Updated · Step by step

If Windows Security’s offline scan won’t start, finishes with an error, or reboots into a normal Windows session instead of the scanning environment, the fix usually involves repairing the Microsoft Defender platform, clearing a corrupted scan cache, or running the scan from the Windows Recovery Environment. Below are the specific steps to get the offline scan working again, followed by background on why it fails and what to do when nothing else helps.

Why the Offline Scan Exists

Windows Security’s offline scan is designed to catch malware that hides deep in the system, often before Windows fully loads. Some rootkits and bootkits load early in the boot process, making them invisible to a normal scan that runs inside the running OS. The offline scan reboots your PC into a minimal Windows Preinstallation Environment (WinPE) that loads only a small set of drivers and the Defender engine. Because the malware never gets a chance to start, the scan can detect and remove files that would otherwise be locked or hidden.

Microsoft introduced this feature in Windows 10 and kept it in Windows 11. It appears as a button on the Windows Security “Virus & threat protection” page, under “Current threats.” The scan itself usually takes 15 to 30 minutes, depending on drive size and speed, and it ends with an automatic reboot back into normal Windows.

How the Offline Scan Is Supposed to Work

When you click “Scan options” and then “Microsoft Defender Offline scan,” Windows schedules a special boot task. On the next restart, the boot manager loads the WinPE image from a hidden partition or from the Windows installation files. The Defender engine then runs a full signature-based scan of the system drive. The scan results are written to a log that Windows Security reads after the reboot, so you see the outcome in the normal app.

For the process to succeed, several components must be intact:

  • The Windows RE (Recovery Environment) partition must be present and functional.
  • Defender’s platform files must be up to date and not corrupted.
  • The boot configuration data (BCD) must have a valid entry for the offline scan.
  • No third-party security software should be interfering with Defender’s scheduled task.

If any of these are broken, the scan either never starts, reboots straight back to the desktop, or fails with an error code such as 0x800705b4 or 0x80070005.

Step-by-Step Fixes

Try these in order. Most users resolve the issue with the first or second fix.

  1. Run Windows Update and update Defender. Go to Settings > Windows Update and install all pending updates. Then open Windows Security, go to “Virus & threat protection” > “Protection updates” and click “Check for updates.” An outdated Defender platform is a common cause.
  2. Repair the Defender platform via PowerShell. Open PowerShell as administrator and run Get-MpComputerStatus to check the engine and platform versions. Then run Update-MpSignature to force a signature update. If that fails, download the latest platform update from the Microsoft Defender security intelligence page and install it manually.
  3. Clear the scan cache. In Windows Security, go to “Virus & threat protection” > “Protection history.” Click “Filter” and select “Quarantined items.” Remove any items that might be stuck. Then restart the PC and try the offline scan again.
  4. Run the offline scan from the Recovery Environment. If the button in Windows Security doesn’t work, restart your PC while holding the Shift key, then go to Troubleshoot > Advanced options > Startup Settings > Restart. After the reboot, press 4 to enable Safe Mode, then run the offline scan from Windows Security. Alternatively, boot from a Windows installation USB, select “Repair your computer,” and then “Troubleshoot” > “Command Prompt.” From there, run start ms-settings:windowsdefender to open Windows Security in the recovery environment.
  5. Repair the Windows RE partition. Open Command Prompt as administrator and run reagentc /info to see if Windows RE is enabled. If it’s disabled, run reagentc /enable. If the partition is missing, you may need to run reagentc /setreimage /path C:\Windows\System32\Recovery and then enable it.
  6. Check for third-party antivirus conflicts. Some security suites disable Defender’s scheduled tasks. Temporarily uninstall any third-party antivirus, restart, and try the offline scan. If it works, you know the conflict is real; consider switching to Defender or adjusting the third-party settings.

Common Error Messages and Their Meanings

Users often see one of these errors when the offline scan fails:

  • 0x800705b4 – This is a timeout error. The scan took too long to start, often because the WinPE image is corrupted or the system drive is failing.
  • 0x80070005 – Access denied. This usually means a permissions issue with the scheduled task or the Defender service. Running sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth in an elevated Command Prompt can fix system file corruption.
  • “Offline scan could not be completed” – A generic message that often appears when the PC reboots into normal Windows instead of the WinPE environment. This points to a broken BCD entry or a missing Windows RE partition.

If you see these errors, the fixes in the previous section are the right starting point. For persistent access-denied errors, also check that the “Windows Defender Antivirus Service” is set to Automatic in services.msc and is running.

Alternatives When Offline Scan Won’t Run

If you cannot get the offline scan to work, you still have options to scan for deeply embedded malware:

  • Windows Defender Safe Mode scan. Boot into Safe Mode (Settings > System > Recovery > Advanced startup, then Troubleshoot > Advanced options > Startup Settings > Restart, then press 4). In Safe Mode, run a full scan. Many rootkits don’t load in Safe Mode, so this can be almost as effective as an offline scan.
  • Microsoft Safety Scanner. This is a standalone tool from Microsoft that you download and run. It uses the same definitions as Defender and can be run from a USB drive. It doesn’t require installation and can be used even if Windows Security is broken.
  • Third-party rescue disks. Tools like the Kaspersky Rescue Disk or Bitdefender Rescue CD boot from a USB and scan the system without loading Windows. These are effective but are third-party products, so download them only from the official vendor sites.
  • Reset Windows. If malware is suspected and no scan works, a full reset (Settings > System > Recovery > Reset PC) that removes everything is the most thorough option. Back up your files first, though some malware can survive in the backup, so scan the backup with another device.

Frequently Asked Questions

Why does my PC just reboot normally when I click “Offline scan”?
This usually means the Windows RE partition or the BCD entry is missing or corrupted. Run reagentc /info in an elevated Command Prompt to check if Windows RE is enabled. If it’s disabled, enable it with reagentc /enable. If that fails, use the Windows installation USB to run Startup Repair.

Can I run an offline scan if I have third-party antivirus installed?
Yes, but the third-party software may disable Defender’s scheduled tasks. If the offline scan fails, temporarily uninstall the third-party antivirus, run the scan, and then reinstall it. If you prefer to keep the third-party software, use its own rescue disk or bootable scanner instead.

How long does an offline scan take?
Typically 15 to 30 minutes, but it can take longer on large or slow drives. The screen goes black with a progress indicator. If it takes more than an hour, it may be stuck; force a restart and try the fixes above.

Will an offline scan delete my personal files?
No. The offline scan only removes detected malware. Your documents, photos, and other files remain untouched. However, some infected files may be quarantined or deleted if they are malicious, so it’s wise to back up important data regularly.

What’s the difference between an offline scan and a full scan?
A full scan runs inside Windows and checks all files and running processes. An offline scan boots into a minimal environment and scans the system drive before Windows loads, which allows detection of rootkits and bootkits that hide from the running OS. The offline scan is more thorough for deep infections but takes longer and requires a reboot.

Is there a way to run the offline scan from a USB drive?
Yes, you can create a Windows installation USB and boot from it, then select “Repair your computer” > “Troubleshoot” > “Advanced options” > “Command Prompt.” From there, you can run the command start ms-settings:windowsdefender to open Windows Security, but the offline scan option may not be available in that environment. A more reliable alternative is to use a third-party rescue disk that boots directly into a scanning environment.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →