All silent-install switches →

SwitchHunt / catalog

Splunk Universal Forwarder - Silent Install Switch

The hand-curated silent install command for Splunk Universal Forwarder 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" AGREETOLICENSE=Yes /quiet

Silent uninstall command

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

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

Notes & gotchas

AGREETOLICENSE=Yes is REQUIRED: the MSI defaults it to No, and without it the lab install failed with 1603 (its log: CheckLicenseAgreement, Return value 3). With it the SplunkForwarder service installed set to Automatic and running. It registers as "UniversalForwarder" in Add/Remove Programs. With no SPLUNKUSERNAME/SPLUNKPASSWORD the MSI's default GENRANDOMPASSWORD=1 sets a random admin password.

Install options

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

OptionWhat it does
AGREETOLICENSE=YesRequired; the default No fails the install with 1603.
DEPLOYMENT_SERVER="..."host:port of your deployment server (usually :8089).
RECEIVING_INDEXER="..."host:port of the indexer to forward to (usually :9997).
SPLUNKUSERNAME="..."Local admin user for the forwarder.
SPLUNKPASSWORD="..."Its password (without these two, a random one is generated).

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 Splunk Universal Forwarder 10.6.1.1, 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 Splunk Universal Forwarder?

Run: msiexec /i "installer.msi" AGREETOLICENSE=Yes /quiet

How do I silently uninstall Splunk Universal Forwarder?

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

Any gotchas installing Splunk Universal Forwarder unattended?

AGREETOLICENSE=Yes is REQUIRED: the MSI defaults it to No, and without it the lab install failed with 1603 (its log: CheckLicenseAgreement, Return value 3). With it the SplunkForwarder service installed set to Automatic and running. It registers as "UniversalForwarder" in Add/Remove Programs. With no SPLUNKUSERNAME/SPLUNKPASSWORD the MSI's default GENRANDOMPASSWORD=1 sets a random admin password.

What install options does the Splunk Universal Forwarder installer take?

AGREETOLICENSE=Yes: Required; the default No fails the install with 1603. DEPLOYMENT_SERVER: host:port of your deployment server (usually :8089). RECEIVING_INDEXER: host:port of the indexer to forward to (usually :9997). SPLUNKUSERNAME: Local admin user for the forwarder. SPLUNKPASSWORD: Its password (without these two, a random one is generated).

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.