i,
Please kindly assist, how to make MSI installation command line, where this parameter is included:
ALLOWDENYKEY="AllowKey=system.run[reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersio n\Wi ndowsUpdate\Auto Update" | find /C "RebootRequired"]"
Problem is, that syntax does not accept such complex command and Zabbix instructions here, does not help:
https://www.zabbix.com/documentation...ted-parameters
Problem is, that command like that, does not work:
msiexec /l*v log.txt /i "zabbix_agent2-7.0.0-windows-amd64-openssl.msi" HOSTNAME=myHost^ SERVER=xxx LISTENPORT=10050 SERVERACTIVE=xxx:10051 ALLOWDENYKEY="AllowKey=system.run[reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersio n\Wi ndowsUpdate\Auto Update" | find /C "RebootRequired"]" /qb
Additionally, please kindly assist, how to write properly this part:
HOSTNAME=myHost^ - so that after MSI installation, proper hostname is written in Zabbix configuration file.
Thanks beforehand!
Please kindly assist, how to make MSI installation command line, where this parameter is included:
ALLOWDENYKEY="AllowKey=system.run[reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersio n\Wi ndowsUpdate\Auto Update" | find /C "RebootRequired"]"
Problem is, that syntax does not accept such complex command and Zabbix instructions here, does not help:
https://www.zabbix.com/documentation...ted-parameters
| ALLOWDENYKEY | Sequence of "AllowKey" and "DenyKey" parameters separated by ; Use \\; to escape the delimiter. Example: ALLOWDENYKEY="AllowKey=system.run[type c:\windows\system32\drivers\etc\hosts];DenyKey=system.run[*]" |
msiexec /l*v log.txt /i "zabbix_agent2-7.0.0-windows-amd64-openssl.msi" HOSTNAME=myHost^ SERVER=xxx LISTENPORT=10050 SERVERACTIVE=xxx:10051 ALLOWDENYKEY="AllowKey=system.run[reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersio n\Wi ndowsUpdate\Auto Update" | find /C "RebootRequired"]" /qb
Additionally, please kindly assist, how to write properly this part:
HOSTNAME=myHost^ - so that after MSI installation, proper hostname is written in Zabbix configuration file.
Thanks beforehand!
Comment