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/7.2/7.2.2/zabbix_agent2-7.2.2-windows-amd64-openssl.msibut 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-ZABBPre-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)
line 4:
-- [Parameter]
++ [Parameter()]