SwitchHunt / catalog
Zabbix Agent 2 - Silent Install Switch
The hand-curated silent install command for Zabbix Agent 2 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 SERVER=zabbix.example.com SERVERACTIVE=zabbix.example.com Silent uninstall command
msiexec /x "installer.msi" /qn /norestart Replace installer.msi with the actual installer filename (or its full path).
Notes & gotchas
Put your own server in SERVER (who may poll this agent) and SERVERACTIVE (where it sends active checks). In the lab both landed as Server= and ServerActive= in zabbix_agent2.conf and the service started. Without them the agent installs but nothing can talk to it. HOSTNAME defaults to the computer name.
Install options
Add any of these to the install command. Values shown are the useful setting; "..." means you supply your own.
| Option | What it does |
|---|---|
SERVER="..." | Zabbix server(s) allowed to poll this agent (passive checks). |
SERVERACTIVE="..." | Zabbix server/proxy the agent sends active checks to. |
HOSTNAME="..." | Host name as configured in Zabbix (default: the computer name). |
TLSCONNECT=psk | Encrypt connections to the server with a pre-shared key. |
TLSACCEPT=psk | Only accept PSK-encrypted connections from the server. |
TLSPSKIDENTITY="..." | PSK identity, matching the host's encryption settings in Zabbix. |
TLSPSKVALUE="..." | The pre-shared key itself (hex). |
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 Zabbix Agent 2 7.4.8, 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 Zabbix Agent 2?
Run: msiexec /i "installer.msi" /qn SERVER=zabbix.example.com SERVERACTIVE=zabbix.example.com
How do I silently uninstall Zabbix Agent 2?
Run: msiexec /x "installer.msi" /qn /norestart
Any gotchas installing Zabbix Agent 2 unattended?
Put your own server in SERVER (who may poll this agent) and SERVERACTIVE (where it sends active checks). In the lab both landed as Server= and ServerActive= in zabbix_agent2.conf and the service started. Without them the agent installs but nothing can talk to it. HOSTNAME defaults to the computer name.
What install options does the Zabbix Agent 2 installer take?
SERVER: Zabbix server(s) allowed to poll this agent (passive checks). SERVERACTIVE: Zabbix server/proxy the agent sends active checks to. HOSTNAME: Host name as configured in Zabbix (default: the computer name). TLSCONNECT=psk: Encrypt connections to the server with a pre-shared key. TLSACCEPT=psk: Only accept PSK-encrypted connections from the server. TLSPSKIDENTITY: PSK identity, matching the host's encryption settings in Zabbix. TLSPSKVALUE: The pre-shared key itself (hex).
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.