Microsoft Defender for Endpoint
Endpoint protection

Edr Detection

In brief

The page adds prerequisite guidance and platform-specific procedures, clarifies the Windows test command and completion message, updates the Linux test-script link text, and refines exclusion guidance.

What Defender admins need to know

Administrators running EDR detection tests can use the clearer prerequisites and platform-specific steps.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

  • m365-security
  • tier3
  • mde-macos ms.custom: admindeeplinkDEFENDER, msecd-doc-authoring-10141016 ms.topic: how-to ms.subservice: edr ms.date: 06/17/07/03/2026 appliesto:
    • Microsoft Defender for Endpoint Plan 2
    • Microsoft Defender for Business

Prerequisites

Before you run the EDR detection test, make sure your environment meets these requirements:

  • Windows client devices must be running Windows 11, Windows 10 version 1709 build 16273 or newer, Windows 8.1, or Windows 7 SP1.
  • Windows server devices must be running Windows Server 2008 R2 SP1, Windows Server 2012 R2 and later, or Azure Stack HCI OS, version 23H2 and later.
  • Linux servers must be running a supported version (see Prerequisites for Microsoft Defender for Endpoint on Linux)

Run an EDR detection test

Use the following platform-specific procedures to run the EDR detection test.

Run the EDR detection test on Windows

In a Command Prompt window, run the following command to download and launch a test file that triggers an EDR detection:

powershell.exe -NoExit -ExecutionPolicy Bypass -WindowStyle Hidden $ErrorActionPreference='silentlycontinue';(New-Object System.Net.WebClient).DownloadFile('http://127.0.0.1/1.exe', 'C:\\test-WDATP-test\\invoice.exe');Start-Process 'C:\\test-WDATP-test\\invoice.exe'

If the command runs successfully and the test file executes, the Windows EDR detection test is marked as completed and a new alert appears within a few minutes.

Run the EDR detection test on Linux

Perform the following steps to run the EDR detection test on Linux.

  1. Download the MDE Linux EDR DIY package to an onboarded Linux server so you can extract and run the test script locally. For more information, see the MDE Linux EDR DIY test script.

    curl -o ~/Downloads/MDE-Linux-EDR-DIY.zip -L https://aka.ms/MDE-Linux-EDR-DIY
    

Next steps

If you're experiencing issues with application have app compatibility or performance, you mightperformance issues, consider adding exclusions. See the following articles forFor more information:information, see: