All silent-install switches →

SwitchHunt / catalog

Datadog Agent - Silent Install Switch

The hand-curated silent install command for Datadog Agent on Windows, plus its silent uninstall command - for unattended, quiet, fleet-wide deploys. Copy, paste, ship - smoke-test in a throwaway VM first.

Silent install command

msiexec /i "installer.msi" /qn

Silent uninstall command

msiexec /x "installer.msi" /qn /norestart

Replace installer.msi with the actual installer filename (or its full path).

Notes & gotchas

Add APIKEY (and SITE if you are not on datadoghq.com). Without APIKEY it still installs and the agent service runs, but with an empty api_key in C:\ProgramData\Datadog\datadog.yaml, so it looks healthy and reports nothing (lab). With APIKEY and SITE on the command line both landed in datadog.yaml. About 3 minutes as SYSTEM.

Install options

Add any of these to the install command. Values shown are the useful setting; "..." means you supply your own.

OptionWhat it does
APIKEY="..."Your Datadog API key. Required for the agent to report.
SITE=datadoghq.comYour Datadog site (datadoghq.eu, us3.datadoghq.com, ...).
TAGS="..."Comma-separated host tags, e.g. env:prod,team:it.
HOSTNAME="..."Override the host name the agent reports.

Lab-tested

On 2026-11-11 we ran the install command above as SYSTEM (how deployment tools run it) on a Windows 11 VM against Datadog Agent 7.85.2, and confirmed the app showed up in Add/Remove Programs - not just that the installer exited 0. The uninstall command above then removed it. Vendors change installers between versions, so smoke-test a new one before you ship it fleet-wide.

FAQ

What is the silent install command for Datadog Agent?

Run: msiexec /i "installer.msi" /qn

How do I silently uninstall Datadog Agent?

Run: msiexec /x "installer.msi" /qn /norestart

Any gotchas installing Datadog Agent unattended?

Add APIKEY (and SITE if you are not on datadoghq.com). Without APIKEY it still installs and the agent service runs, but with an empty api_key in C:\ProgramData\Datadog\datadog.yaml, so it looks healthy and reports nothing (lab). With APIKEY and SITE on the command line both landed in datadog.yaml. About 3 minutes as SYSTEM.

What install options does the Datadog Agent installer take?

APIKEY: Your Datadog API key. Required for the agent to report. SITE=datadoghq.com: Your Datadog site (datadoghq.eu, us3.datadoghq.com, ...). TAGS: Comma-separated host tags, e.g. env:prod,team:it. HOSTNAME: Override the host name the agent reports.

Got a different installer, or one that isn't in this list? Drop it into SwitchHunt and it reads the silent switches right in your browser, nothing uploaded.