Microsoft Defender Offline scan in Windows - Microsoft Defender for Endpoint (2024)

  • Article

Applies to:

  • Microsoft Defender for Endpoint Plan 1
  • Microsoft Defender for Endpoint Plan 2
  • Microsoft Defender Antivirus
  • Microsoft Defender for Business
  • Microsoft Defender for Individuals
Applies toType
PlatformWindows
Protection typeHardware
Firmware/ RootkitOperating system
Driver
Memory (Heap)
Application
Identity
Cloud

[NOTE]The protection for this feature focuses on the Firmware/Rootkit.

Microsoft Defender Offline is 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 target malware that attempts to bypass the Windows shell, such as viruses and rootkits that infect or overwrite the master boot record (MBR).

You can use Microsoft Defender Offline Scan if you suspect a malware infection, or you want to confirm a thorough clean of the endpoint after a malware outbreak.

Prerequisites and requirements

The following are the hardware requirements for Microsoft Defender Offline Scan in Windows:

  • x64 Windows 11
  • x64/x86 Windows 10
  • x64/x86 Windows 8.1
  • x64/x86 Windows 7 Service Pack 1

Caution

Microsoft Defender Offline Scan does not apply to:

  • ARM Windows 11
  • ARM Windows 10
  • Windows Server Stock Keeping Units (SKU's)

For more information about Windows 10 and Windows 11 requirements, see the following articles:

  • Minimum hardware requirements
  • Hardware component guidelines

Microsoft Defender Offline updates

To receive Microsoft Defender Offline Scan updates:

  • Microsoft Defender Antivirus must be your primary antivirus software (not in passive mode).

  • Update Microsoft Defender Antivirus how you normally deploy updates to endpoints. Use a supported version of the:

    • Platform Update

    • Engine Update

    • Security Intelligence Updates

      • You can manually download and install the latest protection updates from the Microsoft Malware Protection Center
      • See the Manage Microsoft Defender Antivirus Security intelligence updates article for more information.
  • Users must be signed in with local administrator privileges.

  • Windows Recovery Environment (WinRE) needs to be enabled.

Note

If WinRE is disabled, the Windows Defender Offline scan doesn't run and no error messages are displayed. Nothing happens even if the machine is restarted manually. To fix this, you only have to enable WinRE.

  • To check the WinRE status, you can execute this command-line: reagentc /info.
  • If the status is Disabled, you can enable it by executing this command-line: reagentc /enable.

Usage scenarios

The need to run Microsoft Defender Offline Scan:

If Microsoft Defender Antivirus determines that you need to run Microsoft Defender Offline, it prompts the user on the device. The prompt can occur via a notification, similar to the following:

The user is also notified within the Microsoft Defender Antivirus client. If you're using Intune to manage devices, you can see the notification in Intune.

  • You can manually force an offline scan that is built-in Windows 10, version 1607 or newer, and Windows 11. Or, you can scan through a bootable media for the older Windows OS'es as described here.

In Configuration Manager, you can identify the status of endpoints by navigating to Monitoring > Overview > Security > Endpoint Protection Status > System Center Endpoint Protection Status.

Microsoft Defender Offline scans are indicated under Malware remediation status as Offline scan required.

Configure notifications

Microsoft Defender Offline notifications are configured in the same policy setting as other Microsoft Defender Antivirus notifications.

For more information about notifications in Windows Defender, see Configure the notifications that appear on endpoints.

Run a scan

Important

Before you use Microsoft Defender Offline Scan, make sure you save any files and shut down running programs. The Microsoft Defender Offline scan takes about 15 minutes to run. It will restart the endpoint when the scan is complete. The scan is performed outside of the usual Windows operating environment. The user interface will appear different to a normal scan performed by Windows Defender. After the scan is completed, the endpoint will be restarted and Windows will load normally.

You can run a Microsoft Defender Offline scan with the following methods:

  • The Windows Security app
  • PowerShell
  • Windows Management Instrumentation (WMI)

Use the Windows Defender Security app to run an offline scan

Starting with Windows 10, version 1607 or newer, and Windows 11, Microsoft Defender Offline Scan can be run with one click directly from the Windows Security app. In previous versions of Windows, a user had to install Microsoft Defender Offline Scan to bootable media, restart the endpoint, and load the bootable media.

Note

In Windows 10, version 1607, the offline scan can be run from Windows Settings > Update & security > Windows Defender or from the Windows Defender client.

  1. On your Windows device, open the Windows Security app, and then Scan options.

  2. Select the radio button Microsoft Defender Offline scan and select Scan now.

    The process starts from C:\ProgramData\Microsoft\Windows Defender\Offline Scanner.

  3. You get a prompt to save your work before continuing, similar to the following image:

    Microsoft Defender Offline scan in Windows - Microsoft Defender for Endpoint (3)

    After you saved your work, select Scan.

  4. After you select Scan, you get another prompt requesting your permission to make changes to your device, similar to the following image:

    Microsoft Defender Offline scan in Windows - Microsoft Defender for Endpoint (4)

    Select Yes.

  5. Another prompt appears and informs you that you'll be signed out and Windows will shut down in less than a minute, similar to the following image:

    Microsoft Defender Offline scan in Windows - Microsoft Defender for Endpoint (5)

  6. You see that the Microsoft Defender Antivirus scan (offline scan) is in progress.

    Microsoft Defender Offline scan in Windows - Microsoft Defender for Endpoint (6)

    You'll see the following image:

    Microsoft Defender Offline scan in Windows - Microsoft Defender for Endpoint (7)

Use PowerShell cmdlets to run an offline scan

Use the following cmdlets:

Start-MpWDOScan

See Use PowerShell cmdlets to configure and run Microsoft Defender Antivirus and Defender Antivirus cmdlets for more information on how to use PowerShell with Microsoft Defender Antivirus.

Use Windows Management Instruction (WMI) to run an offline scan

Use the MSFT_MpWDOScan class to run an offline scan.

The following WMI script snippet will immediately run a Microsoft Defender Offline scan, which will cause the endpoint to restart, run the offline scan, and then restart and boot into Windows.

wmic /namespace:\\root\Microsoft\Windows\Defender path MSFT_MpWDOScan call Start

For more information, see Windows Defender WMIv2 APIs.

In Windows 7 Service Pack 1 and Windows 8.1:

  1. Download Windows Defender Offline and install it to a CD, DVD, or USB flash drive using the following links:

    • Download the 64-bit version (msstool64.exe)
    • Download the 32-bit version (msstool32.exe)

    If you're not sure which version to download, see Is my PC running the 32-bit or 64-bit version of Windows?.

  2. To get started, find a blank CD, DVD, or USB flash drive with at least 250 MB of free space, and then run the tool. You are guided through the steps to create the removable media.

    Tip

    We recommend you to do the following when downloading Windows Defender Offline:

    • Download Windows Defender Offline and create the CD, DVD, or USB flash drive on a PC that isn't infected with malware as the malware can interfere with the media creation.
    • If you use a USB drive, the drive will be reformatted and any data on it will be erased. Ensure to back up any important data from the drive first.

    Microsoft Defender Offline scan in Windows - Microsoft Defender for Endpoint (8)

  3. Scan your PC for viruses and other malware.

    1. Once you've created the USB drive, CD, or DVD, remove it from your current computer and take it to the computer you want to scan. Insert the USB drive or disc into the other computer and restart the computer.

    2. Boot from the USB drive, CD, or DVD to run the scan. Depending on the computer's settings, it may automatically boot from the media after you restart it, or you may have to press a key to enter a "boot devices" menu or modify the boot order in the computer's UEFI firmware or BIOS.

    3. After you boot the device, you see a Microsoft Defender tool that will automatically scan your computer and remove malware.

    4. After the scan is complete and you're done with the tool, you can reboot your computer and remove the Microsoft Defender Offline media to boot back into Windows.

  4. Remove any malware that's found from your PC.

    If you experience a Stop error on a blue screen when you run the offline scan, restart your device and try running a Microsoft Defender Offline scan again. If the blue-screen error happens again, contact Microsoft Support.

Where can I find the scan results?

To see the Microsoft Defender Offline scan results in Windows 10 and Windows 11:

  1. Select Start, and then select Settings > Update & Security > Windows Security > Virus & threat protection.

  2. On the Virus & threat protection screen, under Current threats, select Scan options, and then select Protection history.For more information, see Review threat detection history in the Windows Security app.

How can I find out if Microsoft Defender Offline scan was kicked off?

In the Event Viewer, go to Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational. You'll see:

  • Log Name: Microsoft-Windows-Windows Defender/Operational
  • Source: Microsoft-Windows-Windows Defender
  • Event ID: 2030
  • Level: Information
  • Description: Microsoft Defender Antivirus downloaded and configured Microsoft Defender Antivirus (offline scan) to run on the next reboot.

On older versions than Windows 10, 2004, you'll see:

Windows Defender Antivirus downloaded and configured Windows Defender Offline to run on the next reboot.

  • Log Name: Microsoft-Windows-Windows Defender/Operational
  • Source: Microsoft-Windows-Windows Defender
  • Event ID: 5007
  • Level: Information
  • Description: Microsoft Defender Antivirus Configuration has changed. If this is an unexpected event, you should review the settings as this may be the result of malware.
  • Old value: N/A\Scan\OfflineScanRun =
  • New value: HKLM\SOFTWARE\Microsoft\Windows Defender\Scan\OfflineScanRun = 0x0

Related articles

  • Customize, initiate, and review the results of scans and remediation
  • Microsoft Defender Antivirus in Windows 10

Tip

If you're looking for Antivirus related information for other platforms, see:

  • Set preferences for Microsoft Defender for Endpoint on macOS
  • Microsoft Defender for Endpoint on Mac
  • macOS Antivirus policy settings for Microsoft Defender Antivirus for Intune
  • Set preferences for Microsoft Defender for Endpoint on Linux
  • Microsoft Defender for Endpoint on Linux
  • Configure Defender for Endpoint on Android features
  • Configure Microsoft Defender for Endpoint on iOS features

Tip

Do you want to learn more? Engage with the Microsoft Security community in our Tech Community: Microsoft Defender for Endpoint Tech Community.

Microsoft Defender Offline scan in Windows - Microsoft Defender for Endpoint (2024)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Dan Stracke

Last Updated:

Views: 6045

Rating: 4.2 / 5 (43 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Dan Stracke

Birthday: 1992-08-25

Address: 2253 Brown Springs, East Alla, OH 38634-0309

Phone: +398735162064

Job: Investor Government Associate

Hobby: Shopping, LARPing, Scrapbooking, Surfing, Slacklining, Dance, Glassblowing

Introduction: My name is Dan Stracke, I am a homely, gleaming, glamorous, inquisitive, homely, gorgeous, light person who loves writing and wants to share my knowledge and understanding with you.