Installing the Datadog Agent on Windows - What Changes from Linux
This article organizes installing the Datadog Agent on Windows Server by reusing the same decisions as the Linux version as is and adding only the decisions that Windows introduces. It follows the differences: choosing between the MSI and PowerShell, the run account ddagentuser, how to pick up the Event Log, and the supported versions.
Three Decisions Are the Same as Linux, Two Are Added on Windows
When you put the Datadog Agent on Windows Server, the three decisions of destination site, how to pass the API key, and the tags to attach to the host are no different from the Linux version, and how to decide them is left to the Linux installation article. What is newly added on Windows are two things: "which account to run the Agent under" and "which Windows Event Log channels to pick up." The former includes items that can only be decided at installation time, and the latter is written in the configuration file in a way entirely different from Linux file logs.
| Aspect | Linux | Windows |
|---|---|---|
| Installation method | UI-generated script or package manager | MSI installer (GUI) or msiexec from PowerShell |
| Run account | A dedicated OS user | ddagentuser (created by the installer. In domain environments it may need to be prepared in advance) |
| Location of configuration files | /etc/datadog-agent/ | C:\ProgramData\Datadog\ (hidden folder) |
| Service operations | service datadog-agent and datadog-agent status | Service Control Manager and agent.exe subcommands |
| How OS logs are picked up | Write file paths in conf.d | Write Event Log channel names in the conf under win32_event_log.d |
If you decide the right-hand column of this table from top to bottom, the Windows-specific preparation is done. The following sections dig into the right-hand column one row at a time, and finally summarize the supported Server versions and the places that trip you up.
MSI GUI or PowerShell msiexec - Which One to Install With
The installation method the official page presents first is to copy the command generated in the Datadog UI (the Fleet Automation installation flow) and run it on the Windows host. As an alternative, there is also a method of downloading the MSI installer directly and proceeding through the GUI, which finishes once you enter administrator credentials and the API key (as of September 2026; source: Basic Agent Usage for Windows). The fork is the host count: if you are installing on multiple hosts with the same configuration, leaning toward calling msiexec from PowerShell and passing the configuration as arguments prevents configuration drift from server to server.
$p = Start-Process -Wait -PassThru msiexec -ArgumentList '/qn /i https://windows-agent.datadoghq.com/datadog-agent-7-latest.amd64.msi /log C:\Windows\SystemTemp\install-datadog.log APIKEY="<DATADOG_API_KEY>" SITE="datadoghq.com" TAGS="env:prod,team:infra"'The example above adds the SITE and TAGS properties to the msiexec example in Datadog Windows Agent User; /qn is a quiet install that shows no UI, and /log is the output destination for the installation log.
| Property | Meaning | Notes |
|---|---|---|
| APIKEY / SITE / TAGS / HOSTNAME | Key, destination site, host tags, and the hostname to report | Same as the items written in datadog.yaml on the Linux version |
| DDAGENTUSER_NAME / DDAGENTUSER_PASSWORD | Name and password of the account that runs the Agent | Specifying the password is required on domain servers |
| APPLICATIONDATADIRECTORY / PROJECTLOCATION | Location of configuration files and executables | Can only be specified on first installation. Has no effect on upgrades |
| LOGS_ENABLED / APM_ENABLED / PROCESS_ENABLED | Enabling log collection, APM, and process collection | Defaults are logs disabled, APM enabled, processes disabled |
| PROXY_HOST / PROXY_PORT / PROXY_USER / PROXY_PASSWORD | Connection target when sending through a proxy | Can also be set later in datadog.yaml |
| REBOOT=ReallySuppress | Suppresses forced reboots | Some versions involve a reboot, so include it in production |
If a valid datadog.yaml already exists on the host, that file takes precedence over the values passed on the command line. When you changed the arguments but they are not reflected, suspect an existing configuration file.
What Is ddagentuser? - The Meaning and Permissions of the Service Run Account
The Windows version of the Agent runs under a local account called ddagentuser that the installer creates. It is the same idea as the Linux version running under a dedicated user, but on Windows the permissions given to this account and its local security policy are explicitly defined. At installation it is added to three groups: Performance Monitor Users, Event Log Readers, and Performance Log Users (Agent 7.51 or later). At the same time, it is denied access over the network, local logon, and logon via Remote Desktop, and is allowed only logon as a service (as of September 2026; source: Datadog Windows Agent User). In short, it is an account that can perform the reads needed for monitoring but cannot log in as a person.
| Environment | Installer behavior | What to decide in advance |
|---|---|---|
| Workgroup / standalone server | Creates ddagentuser with a random password if none is specified | Nothing in particular. DDAGENTUSER_NAME only if you want to change the name |
| Domain-joined server | If specifying a domain account, it must exist in advance. Local creation is also possible | The DOMAIN\USERNAME form and specifying the password |
| Domain controller | There is no concept of a local account; what gets created is a domain user | Installation fails without a password specified |
| Read-only domain controller | Only an existing domain account can be used | Create the account beforehand |
The username must be 20 characters or fewer, the password cannot contain semicolons, and from Agent 7.38 onward a gMSA can also be specified. The typical permission problem is when directories or log files that were readable under the previous LOCAL_SYSTEM execution become unreadable under ddagentuser, and the official page cautions that this kind of problem occurs in both directory checks and log collection.
Service Operations and the Agent Manager Replace the service Command
The execution authority is the Service Control Manager, and the main body is agent.exe. The operations that were split between service datadog-agent and datadog-agent status on Linux are unified on Windows as subcommands of agent.exe run from PowerShell or a Command Prompt opened with administrator privileges (as of September 2026; source: Basic Agent Usage for Windows).
& "$env:ProgramFiles\Datadog\Datadog Agent\bin\agent.exe" status
& "$env:ProgramFiles\Datadog\Datadog Agent\bin\agent.exe" flare| Subcommand | What it does | When to use it |
|---|---|---|
| status | Displays the running state and the results of each check | Verification right after installation. Equivalent to datadog-agent status on Linux |
| start-service / stopservice / restart-service | Start, stop, and restart via the Service Control Manager | Applying changes after editing configuration files (Windows only) |
| launch-gui | Opens the browser-based Datadog Agent Manager | Enabling checks and touching configuration in a UI (64-bit version only) |
| flare | Collects diagnostic information and sends it to support | When you cannot isolate the problem yourself |
| diagnose / hostname / version | Connection diagnostics, the reported hostname, and version display | Isolating hostname inconsistencies or connection failures |
The quickest way to confirm it is running is to see whether DatadogAgent is started in the services list, or whether Datadog Metrics Agent (agent.exe) is present in Task Manager. The Agent Manager can also be opened from the icon in the task tray, and the state appears under Status → General. In addition to the flare used for isolation, the Agent's own log is at C:\ProgramData\Datadog\logs\agent.log (ProgramData is a hidden folder).
For the Event Log, Write the Channel Name in the conf - Two Methods: Logs and Events
OS log collection, for which you wrote file paths on Linux, takes the form on Windows of writing Event Log "channels" in win32_event_log.d/conf.yaml. The official page provides two collection methods, and you configure either sending them as logs to Log Management, sending them as Datadog events, or both in the same file (as of September 2026; source: Windows Event Log). Decide the channel first; the values in the LogName column listed by Get-WinEvent -ListLog * in PowerShell are the channel names as is. To send as logs, first set logs_enabled: true in datadog.yaml, and under logs: list type: windows_event and channel_path.
logs:
- type: windows_event
channel_path: Security
source: windows.events
service: Windows| Aspect | Send as logs | Send as events |
|---|---|---|
| Key for writing the channel | channel_path | path (with legacy_mode: false alongside) |
| Prerequisite | logs_enabled: true in datadog.yaml | From Agent 7.49 onward, the default can be set collectively with legacy_mode in init_config |
| Filtering | query (XPath) recommended. log_processing_rules also possible | filters |
| Confirming success | win32_event_log with Status: OK in the Logs Agent section of agent.exe status | instance [OK] and the number of collected events in the Checks section of the same |
| Deprecated form | - | legacy_mode: true and old filters such as source_name / event_id |
Attaching source: windows.events makes the integration pipeline apply automatically. To limit the volume, XPath in query is recommended; build the condition in the Event Viewer's filter editor and then paste it in. The Security channel requires membership in the Event Log Readers group, and the default ddagentuser is added to this group at installation. From Agent 7.54 onward, simply setting dd_security_events to low or high sends the major security events as logs, which can feed into Cloud SIEM detection.
Supported Windows Server Versions and What Happens on Unsupported Ones
The supported OS table is divided by Agent version. On the official page as of September 2026, Windows Server 2016 / 2019 / 2022 / 2025 are supported by all versions of Agent 7, Server 2012 and 2012 R2 stop at Agent 7.46.0, and Server 2008 R2 stops at Agent 7.45.1 (source: Supported Platforms).
| OS | Agent 7 support | Decision at installation |
|---|---|---|
| Windows Server 2016 / 2019 / 2022 / 2025 | Supported | The datadog-agent-7-latest MSI is fine as is |
| Windows Server 2012 / 2012 R2 | Up to 7.46.0 | Install with a pinned version. Later fixes will not arrive |
| Windows Server 2008 R2 | Up to 7.45.1 | Known clock drift issue. OS replacement comes before monitoring |
| Windows 10 / 11 | Supported | The same MSI for monitoring client machines |
What happens on unsupported versions is not so much "it will not install" as "you are pinned to that version." With the procedure that grabs the latest MSI, newer versions will not install; you end up selecting a specific version from the installer list the official docs point to (installers_v2.json), and subsequent security fixes and new features will not arrive. In environments where old Servers remain, if you do not separate the decision to add monitoring from the decision to replace the OS, and decide in advance the period during which you will monitor with a pinned version, you save yourself the trouble of later explaining "why does only this server have an old Agent?"
Where Proxies, Upgrades, and Uninstallation Trip You Up
On servers that cannot reach outside, pass the route with PROXY_HOST and PROXY_PORT at installation, or write it later in the proxy settings of datadog.yaml. Installers from Agent 7.25.0 onward remember and reuse the username from installation, so you do not have to re-enter the password on upgrades. When updating from an older version, pass DDAGENTUSER_NAME again, and the arguments that change the location are first-time only and have no effect on updates (as of September 2026; source: Datadog Windows Agent User). If the domain's Group Policy forbids "Log on as a service," it gets overridden, so permission on the domain side comes first. Uninstallation is done in one of two ways, from Add or remove programs or by passing the product code to msiexec /x in PowerShell (WinRM is a prerequisite), and in both cases the configuration in C:\ProgramData\Datadog remains.