All silent-install switches →

SwitchHunt / catalog

New Relic Infrastructure Agent - Silent Install Switch

The hand-curated silent install command for New Relic Infrastructure 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 /qn /i "installer.msi" GENERATE_CONFIG=true LICENSE_KEY="your-license-key"

Silent uninstall command

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

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

Notes & gotchas

GENERATE_CONFIG=true is REQUIRED alongside LICENSE_KEY, and the MSI does not declare it, so a scanner won't offer it. In the lab (2.0.2 as SYSTEM, with a dummy 40-character key in place of your-license-key): LICENSE_KEY alone installed the agent STOPPED, with newrelic-infra.yml still holding the template key "<ENTER YOUR NEW RELIC KEY HERE>"; with GENERATE_CONFIG=true the key landed in newrelic-infra.yml and the service was running.

Install options

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

OptionWhat it does
GENERATE_CONFIG=trueWrite newrelic-infra.yml from these properties (without it LICENSE_KEY is ignored).
LICENSE_KEY="..."Your New Relic ingest license key.
DISPLAY_NAME="..."Name shown for this host in New Relic.
CUSTOM_ATTRIBUTES="..."Extra attributes for this host.
PROXY="..."Proxy URL for the agent's outbound traffic.

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 New Relic Infrastructure Agent 2.0.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 New Relic Infrastructure Agent?

Run: msiexec /qn /i "installer.msi" GENERATE_CONFIG=true LICENSE_KEY="your-license-key"

How do I silently uninstall New Relic Infrastructure Agent?

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

Any gotchas installing New Relic Infrastructure Agent unattended?

GENERATE_CONFIG=true is REQUIRED alongside LICENSE_KEY, and the MSI does not declare it, so a scanner won't offer it. In the lab (2.0.2 as SYSTEM, with a dummy 40-character key in place of your-license-key): LICENSE_KEY alone installed the agent STOPPED, with newrelic-infra.yml still holding the template key "<ENTER YOUR NEW RELIC KEY HERE>"; with GENERATE_CONFIG=true the key landed in newrelic-infra.yml and the service was running.

What install options does the New Relic Infrastructure Agent installer take?

GENERATE_CONFIG=true: Write newrelic-infra.yml from these properties (without it LICENSE_KEY is ignored). LICENSE_KEY: Your New Relic ingest license key. DISPLAY_NAME: Name shown for this host in New Relic. CUSTOM_ATTRIBUTES: Extra attributes for this host. PROXY: Proxy URL for the agent's outbound traffic.

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.