This script installs the defined version of Zabbix Agent on Windows machines. It was designed to run via
Install-ZabbixAgent -ComputerName Server01 -zabbixurl https://cdn.zabbix.com/zabbix/binaries/stable/6.4/6.4.14/zabbix_agent-6.4.14-windows-amd64-openssl.msi
but could be used in a variety of workflows. It outputs a pscustomobject:
Name Value
---- -----
TLSPSKIDENTITY PSK-Test-001-ZABB.contoso.com.psk
PreSharedKey 0eaefcb7047fe1511ebf12038beaa44e
HostIPAddress 123.123.123.123
HostName Test-001-ZABB
Pre-shared keys are created at runtime and unique per machine.
- $ComputerName = IP or hostname of device to run Zabbix Agent
- $zabbixUrl = Link to the Zabbix Agent MSI you want to use (as of this writing, 6.4.3 is current)