Customize OneAgent installation on Windows

The Windows Group Policy installer can be used with command line parameters when you can't use the default settings. Note that all parameters listed below except SERVER, TENANT and TENANT_TOKEN are optional.

SERVER—The address of the Dynatrace Server. Use the IP address or a name. Add the port number following a colon, for example

TENANT—Your Dynatrace environment ID. You received this ID with your activation email. By default, this setting is already set to the correct value. If you're selling Dynatrace-based services, use this option to set your customers' IDs (available from the pool of IDs you purchased from Dynatrace).

TENANT_TOKEN—The internal token that is used for authentication when OneAgent connects to the Dynatrace cluster to send data. You can retrieve the tenant token from the following REST endpoint. In return, you will get a JSON object that will include the TENANT_TOKEN.


Be sure to replace <ENVIRONMENTID> and <API_TOKEN> with the proper values.

HOST_GROUP—The name of a group you want to assign the host to. For details, see How do I organize my environment using host groups? Requires OneAgent version 1.139. The host group string can only contain alphanumeric characters, hyphen, underscore, and dot. It must not start with dt. and the maximum length is 100 characters. For example HOST_GROUP=My.HostGroup_123-456. To remove the host from a group, you must uninstall Dynatrace OneAgent. You can't remove the host from a group when updating Dynatrace OneAgent.

PROXY—The address of the proxy server. Use the IP address or a name. Add the port number following a colon, for example PROXY= We also support IPv6 addresses. Skip the PROXY parameter to force the installer to automatically detect proxy or ask for proxy details in the GUI installer. If you want the installer to ignore proxy detection or want to skip entering proxy details, use PROXY=

APP_LOG_CONTENT_ACCESS—When set to true, allows Dynatrace OneAgent to access log files for the purpose of log analytics. Accepted values are (true, false) or (1, 0). This option can alternatively be enabled/disabled through the Web UI.

INSTALL_PATH—Allows installation to a directory of your choice. Works only with absolute Windows paths, for example INSTALL_PATH="C:\test dir".

INFRA_ONLY—Activates cloud infrastructure monitoring mode, in place of full-stack monitoring mode. With this approach, you receive infrastructure-only health data, with no application or user performance data. For details, see Cloud infrastructure monitoring. Accepted values are 0 (deactivated) and 1 (activated). This option can alternatively be enabled/disabled through the Web UI.

INSTALLATION.LOG—Path to the file where the installation log is to be stored.

USER—The user used to run the process responsible for Dynatrace OneAgent plugin functionality. This parameter can have one of two values:

  • dtuser The default user account used to run Dynatrace components. Applied automatically when the USER parameter isn't used.
  • no_create Disables user creation when installing Dynatrace OneAgent. Use this for deploying Dynatrace on Windows Server Domain Controller to avoid propagation of dtuser across the domain, which can cause interference with existing dtuser accounts on hosts that have Dynatrace installed. You can also use this to comply with strict security policies that prohibit creation of local user accounts. Note that using USER=no_create disables Dynatrace OneAgent plugins functionality.

The USER parameter is supported only by command-line .msi installer.

Note: Parameter names are case sensitive. Use ALL CAPS for parameter names.

How to perform a silent installation in Windows

With silent installation, the Dynatrace installer is pre-configured with parameter values that you define. This means that dialogs won't be generated during installation and no human interaction is required.

To set up silent command line installation, add /quiet /qn as shown here:

msiexec /i Dynatrace-OneAgent-Windows- SERVER="" TENANT="xxx" TENANT_TOKEN="xxx" INSTALL_PATH="c:\test dir" /quiet /qn