---
title: Set up End User Device Monitoring on Windows
description: Deploy the Datadog Agent on Windows devices for End User Device Monitoring.
breadcrumbs: >-
  Docs > Infrastructure > End User Device Monitoring > Set up End User Device
  Monitoring > Set up End User Device Monitoring on Windows
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Set up End User Device Monitoring on Windows

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}

There are two ways to deploy the Datadog Agent on Windows devices for End User Device Monitoring. Choose the method that fits your environment:

- **Manual install**: Run a PowerShell command directly on the device. Use this method to test a single machine or for devices that are not managed by a mobile device management (MDM) solution.
- **MDM deploy**: Push the Agent to a fleet of enrolled Windows devices. This example uses Microsoft Intune to deploy the Agent as a Win32 app in the background with no interaction on each device.

{% alert level="danger" %}
The `infrastructure_mode: end_user_device` setting is required. Without it, the device does not appear in the End User Devices view and is billed as a host.
{% /alert %}

{% tab title="Manual install" %}
Use this method to test a single machine or for devices that are not managed by an MDM solution.

### Prerequisites{% #prerequisites %}

- Administrator access on the Windows device.
- A valid Datadog API key. For instructions, see [API and Application Keys](https://docs.datadoghq.com/account_management/api-app-keys.md).
- Windows 10 (64-bit) or Windows 11.
- PowerShell 5.1 or later.
- An active internet connection on the device.

### Install the Agent{% #install-the-agent %}

1. In Datadog, navigate to [Fleet Automation > Install Agents > Windows](https://app.datadoghq.com/fleet/install-agent/latest?platform=windows).
1. Toggle on Enable End User Device Monitoring.
1. Click Select API Key and choose an API key.
1. Copy the provided installation command beginning with `[System.Net.ServicePointManager]::SecurityProtocol =`.
1. Right-click the **Start** menu and select **Windows PowerShell (Admin)** or **Terminal (Admin)**. Click **Yes** on the User Account Control prompt.
1. Paste and run the command in PowerShell. The script downloads the installer, installs the Agent silently, and starts the Datadog Agent service. Installation takes two to three minutes.

### Verify the installation{% #verify-the-installation %}

To confirm that the Agent is running, in Datadog, go to [**Infrastructure** > **End User Devices**](https://app.datadoghq.com/end-user-devices). Your device appears within 5-10 minutes. If it does not appear after 10 minutes, verify your API key and confirm that the configuration was saved and the Agent was restarted.

Alternatively, run the following command in PowerShell to verify the installation:

```powershell
& "C:\Program Files\Datadog\Datadog Agent\bin\agent.exe" status
```

In the output, confirm the following:

- The Agent version is 7.80 or later.
- **Status** is `Running`.
- `infrastructure_mode: end_user_device` is set.

{% /tab %}

{% tab title="MDM deploy (example with Microsoft Intune)" %}
This example method packages the Datadog Agent MSI and a PowerShell configuration script into an Intune Win32 app, which Intune pushes to enrolled Windows devices in the background. No manual steps are needed on each device.

### Prepare the install script and package files{% #prepare-the-install-script-and-package-files %}

Create a working folder on your computer, such as `C:\DDPackage\`, and add the following three files:

- **The Datadog Agent MSI.** [Download the latest Agent MSI from Datadog](https://windows-agent.datadoghq.com/datadog-agent-7-latest.amd64.msi) and place it in the folder. The file is named similar to `datadog-agent-7-latest.amd64.msi`.

- **`Install.ps1`.** Create this file with the following content, replacing the placeholder with your API key:

  ```powershell
  # Install.ps1 - Datadog Agent End User Device Monitoring (Intune Win32)
  
  $apiKey = "<YOUR_API_KEY>"
  $site   = "datadoghq.com"
  $msi    = Join-Path $PSScriptRoot 'datadog-agent-7-latest.amd64.msi'
  
  # Silent install - passes API key and site directly to the MSI
  $p = Start-Process msiexec.exe -PassThru -Wait -ArgumentList (
  '/qn', '/norestart',
  '/log', 'C:\Windows\SystemTemp\install-datadog.log',
  '/i', "`"$msi`"",
  "APIKEY=`"$apiKey`"",
  "SITE=`"$site`"",
  'DD_INFRASTRUCTURE_MODE="end_user_device"'
  )
  if ($p.ExitCode -ne 0) {
  Write-Host "msiexec failed with exit code $($p.ExitCode). Check the log at C:\Windows\SystemTemp\install-datadog.log" -ForegroundColor Red
  exit 1
  }
  
  Write-Host 'Datadog Agent installation complete.'
  ```

  - If your Datadog site is not US1, update `$site` to match. For the list of sites, see [Datadog sites](https://docs.datadoghq.com/getting_started/site.md).

  - For production deployments, avoid hardcoding the API key in the script. Consider storing the key in an Intune Proactive Remediations environment variable, or deploy it separately using the Intune Win32 app SYSTEM context.

- **`Uninstall.ps1`.** Create this file for clean removal:

  ```powershell
  # Uninstall.ps1 - Datadog Agent
  $productCode = (@(Get-ChildItem -Path "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" -Recurse) | Where {$_.GetValue("DisplayName") -like "Datadog Agent" }).PSChildName
  Write-Host "Uninstalling Datadog Agent $productCode"
  Start-Process msiexec -Wait -ArgumentList ('/log', 'C:\Windows\SystemTemp\uninstall-datadog.log', '/q', '/x', "$productCode", 'REBOOT=ReallySuppress')
  Write-Host 'Datadog Agent uninstalled.'
  ```

### Package with the Intune Content Prep Tool{% #package-with-the-intune-content-prep-tool %}

1. Download the [Microsoft Win32 Content Prep Tool](https://github.com/microsoft/Microsoft-Win32-Content-Prep-Tool) (`IntuneWinAppUtil.exe`) if you do not already have it.
1. Run the tool from PowerShell or Command Prompt to package your files:

```powershell
IntuneWinAppUtil.exe `
  -c C:\DDPackage `
  -s Install.ps1 `
  -o C:\DDPackage\output
```

This creates `Install.intunewin` in `C:\DDPackage\output`. Upload this package to Intune.

### Create the Win32 app in Intune{% #create-the-win32-app-in-intune %}

1. In the [Microsoft Intune admin center](https://intune.microsoft.com), go to **Apps** > **All apps** and click **Add**.

1. Select **Windows app (Win32)** as the app type and click **Select**.

1. Upload the `Install.intunewin` package and click **OK**.

1. Fill in the **App information** tab:

   - **Name**: `Datadog Agent EUDM`
   - **Description**: Datadog Agent for End User Device Monitoring
   - **Publisher**: `Datadog`

1. In the **Program** tab, set:

   - **Install command**: `powershell.exe -ExecutionPolicy Bypass -File Install.ps1`
   - **Uninstall command**: `powershell.exe -ExecutionPolicy Bypass -File Uninstall.ps1`
   - **Install behavior**: **System**
   - **Device restart behavior**: **No specific action**

1. In the **Detection rules** tab, select **Manually configure detection rules** and add a **File** detection rule:

   - **Path**: `C:\Program Files\Datadog\Datadog Agent\bin`
   - **File or folder**: `agent.exe`
   - **Detection method**: **File or folder exists**

1. In the **Assignments** tab, assign the app to the device groups or users you want to target. Use **Required** to push the app in the background without user action.

1. Click **Review + create**, and then click **Create** to publish the app.

Intune deploys Win32 apps using the Intune Management Extension. The script runs in the SYSTEM context, so it has the privileges needed to install the MSI and modify `C:\ProgramData\Datadog\datadog.yaml`.

### Verify the deployment{% #verify-the-deployment %}

To confirm that the Agent installed on a device, use one of the following methods:

- In Intune, go to **Apps** > **All apps** > **Datadog Agent EUDM** and check the **Device install status**. Successful installs appear as **Installed**. If a device shows **Failed**, check `C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\IntuneManagementExtension.log` for details.
- On a target device, open PowerShell and run `& "C:\Program Files\Datadog\Datadog Agent\bin\agent.exe" status`. In the output, confirm that **Status** is `Running` and `infrastructure_mode: end_user_device` is set.
- In Datadog, go to [**Infrastructure** > **End User Devices**](https://app.datadoghq.com/end-user-devices). Enrolled devices appear within 5-10 minutes of the Agent starting.

{% /tab %}

## Set up Network Path{% #set-up-network-path %}

[Network Path](https://docs.datadoghq.com/network_monitoring/network_path.md) traces the route from a device to a destination and shows the hop where latency or packet loss is introduced.

On Agent 7.85 or later, each end-user device runs **basic dynamic tests** by default. The Agent selects up to 20 destinations per hour from the device's observed traffic. The first selection runs about five minutes after the Agent starts, and later selections run once per hour. You cannot change this interval.

Basic dynamic tests are included with End User Device Monitoring:

- They follow the [include and exclude filters](https://docs.datadoghq.com/network_monitoring/network_path/setup.md#filter-syntax) you configure.
- They do not appear on the [Plan & Usage](https://docs.datadoghq.com/account_management/plan_and_usage.md) page.
- They do not contribute to billable usage.

For Agent versions earlier than 7.85, see Earlier Agent versions.

### Basic dynamic tests{% #basic-dynamic-tests %}

Agent 7.85 or later is required for basic dynamic tests, with `infrastructure_mode: end_user_device` set.

The Agent enables traceroute for basic dynamic tests. If `traceroute.enabled` is set to `false` in `%ProgramData%\Datadog\system-probe.yaml`, basic dynamic tests do not run. Remove that setting, or set it to `true`, and restart the Agent.

By default, basic dynamic tests skip destinations that have no domain name. To include those destinations, add the following to `%ProgramData%\Datadog\datadog.yaml`:

```yaml
network_path:
  collector:
    monitor_ip_without_domain: true
```

#### Filter destinations{% #filter-destinations %}

Filters control which observed destinations are eligible. Basic dynamic tests select up to 20 destinations per hour from the destinations that pass these filters. Filters are applied in order, and a later filter overrides an earlier one.

Add filters to `%ProgramData%\Datadog\datadog.yaml`:

```yaml
network_path:
  collector:
    filters:
      # Exclude a domain, then include one host within it.
      - match_domain: '*.example.com'
        type: exclude
      - match_domain: 'api.example.com'
        type: include
```

For the full filter syntax, including IP ranges and wildcards, see [Filter syntax](https://docs.datadoghq.com/network_monitoring/network_path/setup.md#filter-syntax).

Restart the Agent after you save the file.

#### Confirm that tests are running{% #confirm-that-tests-are-running %}

About five minutes after the Agent starts, open [Network Path](https://app.datadoghq.com/network/path). If no paths appear, confirm that the Agent is 7.85 or later, that devices have traffic to a destination with a domain name, and that your filters do not exclude that destination.

#### Turn off basic dynamic tests{% #turn-off-basic-dynamic-tests %}

To stop basic dynamic tests on a device, add the following to `%ProgramData%\Datadog\datadog.yaml` and restart the Agent:

```yaml
network_path:
  connections_monitoring:
    eudm_basic_tests_enabled: false
```

### Full dynamic tests{% #full-dynamic-tests %}

Full dynamic tests monitor the connections that [Cloud Network Monitoring](https://docs.datadoghq.com/network_monitoring/cloud_network_monitoring.md) observes. They replace basic dynamic tests on that device.

Full dynamic tests are billed as [Network Path tests](https://www.datadoghq.com/pricing/?product=network-monitoring) and appear on the [Plan & Usage](https://docs.datadoghq.com/account_management/plan_and_usage.md) page.

Agent 7.85 or later is required.

1. Enable Cloud Network Monitoring in `%ProgramData%\Datadog\system-probe.yaml`:

   ```yaml
   network_config:
     enabled: true
   ```

1. Enable dynamic tests in `%ProgramData%\Datadog\datadog.yaml`:

   ```yaml
   network_path:
     connections_monitoring:
       enabled: true
   ```

The same [include and exclude filters](https://docs.datadoghq.com/network_monitoring/network_path/setup.md#filter-syntax) apply. For workers, test interval, and time-to-live settings, see [Dynamic tests](https://docs.datadoghq.com/network_monitoring/network_path/setup.md#dynamic-tests). Those interval settings apply to full dynamic tests only.

1. Restart the Agent.

### Scheduled tests{% #scheduled-tests %}

Scheduled tests monitor endpoints that you list, such as a critical API or a SaaS application.

Scheduled tests replace basic dynamic tests on that device. Scheduled tests are billed as [Network Path tests](https://www.datadoghq.com/pricing/?product=network-monitoring) and appear on the [Plan & Usage](https://docs.datadoghq.com/account_management/plan_and_usage.md) page.

1. Turn off basic dynamic tests in `%ProgramData%\Datadog\datadog.yaml`:

   ```yaml
   network_path:
     connections_monitoring:
       eudm_basic_tests_enabled: false
   ```

1. Enable traceroute in `%ProgramData%\Datadog\system-probe.yaml`:

   ```yaml
   traceroute:
     enabled: true
   ```

1. Create `%ProgramData%\Datadog\conf.d\network_path.d\conf.yaml` and list each destination:

   ```yaml
   init_config:
     min_collection_interval: 60 # in seconds
   instances:
     # Leave port unset when protocol is UDP. A UDP port can make traceroute report the destination as unreachable.
     - hostname: zoom.us
       protocol: TCP
       port: 443
   ```

For optional settings such as timeout and tags, see [Scheduled tests](https://docs.datadoghq.com/network_monitoring/network_path/setup.md#scheduled-tests).

1. Restart the Agent.

### Earlier Agent versions{% #earlier-agent-versions %}

| Agent version   | Network Path on the device                                                                                                                                                                                                         |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 7.85 or later   | Basic dynamic tests select up to 20 destinations per hour. These tests are not billed and do not appear on the Plan & Usage page.                                                                                                  |
| 7.74 to 7.84    | Dynamic tests from the device are billed as [Network Path tests](https://www.datadoghq.com/pricing/?product=network-monitoring). Basic dynamic tests are not available. Upgrade to Agent 7.85 or later to use basic dynamic tests. |
| 7.73 or earlier | Network Path traffic from the device is not billed.                                                                                                                                                                                |

## Troubleshooting{% #troubleshooting %}

For detailed steps, see [Agent Troubleshooting](https://docs.datadoghq.com/agent/troubleshooting.md).

## Further reading{% #further-reading %}

Additional helpful documentation, links, and articles:

- [End User Device Monitoring](https://docs.datadoghq.com/infrastructure/end_user_device_monitoring.md)
- [Set up End User Device Monitoring](https://docs.datadoghq.com/infrastructure/end_user_device_monitoring/setup.md)
- [Network Path](https://docs.datadoghq.com/network_monitoring/network_path.md)
