put the zabbix windows agent exe file on a file share on your network.
Then create a batch file on the same file share like name it installagent.bat or something like that. Installing agent now consists of just navigating to the file share and running the batch file, from each windows box.
installagent.bat:
@echo off
echo copying exe
net use y: \\server\fileshare
xcopy Y:\path\to\exe\zabbixw32.exe c:\
net use y: /delete
echo creating config file
echo Server=zabbix_server_ip_address > c:\zabbix_agentd.conf
echo Hostname=%COMPUTERNAME% >> c:\zabbix_agentd.conf
echo StartAgents=5 >> c:\zabbix_agentd.conf
echo DebugLevel=3 >> c:\zabbix_agentd.conf
echo PidFile=/var/tmp/zabbix_agentd.pid >> c:\zabbix_agentd.conf
echo LogFile=/tmp/zabbix_agentd.log >> c:\zabbix_agentd.conf
echo Timeout=3 >> c:\zabbix_agentd.conf
echo installing service
cd ../../../..
c:\zabbixw32.exe install
echo start service?
pause
net start zabbixagentdw32
Then create a batch file on the same file share like name it installagent.bat or something like that. Installing agent now consists of just navigating to the file share and running the batch file, from each windows box.
installagent.bat:
@echo off
echo copying exe
net use y: \\server\fileshare
xcopy Y:\path\to\exe\zabbixw32.exe c:\
net use y: /delete
echo creating config file
echo Server=zabbix_server_ip_address > c:\zabbix_agentd.conf
echo Hostname=%COMPUTERNAME% >> c:\zabbix_agentd.conf
echo StartAgents=5 >> c:\zabbix_agentd.conf
echo DebugLevel=3 >> c:\zabbix_agentd.conf
echo PidFile=/var/tmp/zabbix_agentd.pid >> c:\zabbix_agentd.conf
echo LogFile=/tmp/zabbix_agentd.log >> c:\zabbix_agentd.conf
echo Timeout=3 >> c:\zabbix_agentd.conf
echo installing service
cd ../../../..
c:\zabbixw32.exe install
echo start service?
pause
net start zabbixagentdw32

Comment