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.

What changes between the Linux and Windows versions (as of September 2026)
AspectLinuxWindows
Installation methodUI-generated script or package managerMSI installer (GUI) or msiexec from PowerShell
Run accountA dedicated OS userddagentuser (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 operationsservice datadog-agent and datadog-agent statusService Control Manager and agent.exe subcommands
How OS logs are picked upWrite file paths in conf.dWrite Event Log channel names in the conf under win32_event_log.d
Source: Basic Agent Usage for Windows / Datadog Windows Agent User / Windows Event Log / Agent Configuration Files / Agent Commands

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.

Main properties passed to msiexec (as of September 2026)
PropertyMeaningNotes
APIKEY / SITE / TAGS / HOSTNAMEKey, destination site, host tags, and the hostname to reportSame as the items written in datadog.yaml on the Linux version
DDAGENTUSER_NAME / DDAGENTUSER_PASSWORDName and password of the account that runs the AgentSpecifying the password is required on domain servers
APPLICATIONDATADIRECTORY / PROJECTLOCATIONLocation of configuration files and executablesCan only be specified on first installation. Has no effect on upgrades
LOGS_ENABLED / APM_ENABLED / PROCESS_ENABLEDEnabling log collection, APM, and process collectionDefaults are logs disabled, APM enabled, processes disabled
PROXY_HOST / PROXY_PORT / PROXY_USER / PROXY_PASSWORDConnection target when sending through a proxyCan also be set later in datadog.yaml
REBOOT=ReallySuppressSuppresses forced rebootsSome versions involve a reboot, so include it in production
Source: the Installation configuration options section of Basic Agent Usage for Windows

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.

Differences in the account to prepare by environment (as of September 2026)
EnvironmentInstaller behaviorWhat to decide in advance
Workgroup / standalone serverCreates ddagentuser with a random password if none is specifiedNothing in particular. DDAGENTUSER_NAME only if you want to change the name
Domain-joined serverIf specifying a domain account, it must exist in advance. Local creation is also possibleThe DOMAIN\USERNAME form and specifying the password
Domain controllerThere is no concept of a local account; what gets created is a domain userInstallation fails without a password specified
Read-only domain controllerOnly an existing domain account can be usedCreate the account beforehand
Source: the Installation in a domain environment section of Datadog Windows Agent User

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
Main agent.exe subcommands and when to use them (as of September 2026)
SubcommandWhat it doesWhen to use it
statusDisplays the running state and the results of each checkVerification right after installation. Equivalent to datadog-agent status on Linux
start-service / stopservice / restart-serviceStart, stop, and restart via the Service Control ManagerApplying changes after editing configuration files (Windows only)
launch-guiOpens the browser-based Datadog Agent ManagerEnabling checks and touching configuration in a UI (64-bit version only)
flareCollects diagnostic information and sends it to supportWhen you cannot isolate the problem yourself
diagnose / hostname / versionConnection diagnostics, the reported hostname, and version displayIsolating hostname inconsistencies or connection failures
Source: Basic Agent Usage for Windows / Agent Commands

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
Differences between the two methods of sending the Event Log (as of September 2026)
AspectSend as logsSend as events
Key for writing the channelchannel_pathpath (with legacy_mode: false alongside)
Prerequisitelogs_enabled: true in datadog.yamlFrom Agent 7.49 onward, the default can be set collectively with legacy_mode in init_config
Filteringquery (XPath) recommended. log_processing_rules also possiblefilters
Confirming successwin32_event_log with Status: OK in the Logs Agent section of agent.exe statusinstance [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
Source: the Configuration / Filtering events / Validation sections of Windows Event Log

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).

Windows support status (Agent 7, as of September 2026)
OSAgent 7 supportDecision at installation
Windows Server 2016 / 2019 / 2022 / 2025SupportedThe datadog-agent-7-latest MSI is fine as is
Windows Server 2012 / 2012 R2Up to 7.46.0Install with a pinned version. Later fixes will not arrive
Windows Server 2008 R2Up to 7.45.1Known clock drift issue. OS replacement comes before monitoring
Windows 10 / 11SupportedThe same MSI for monitoring client machines
Source: the Windows tab of Supported Platforms

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.

References

Share