Hi there,
I'm trying to execute a .ps1 script on several Windows machines via zabbix agent2 and system.run.
on 10 out of 12 machines this works perfect. Only on 2 of my DCs it doesn't and I get the following error in the agent's log file:
Any Ideas?
thx,
Serpentes
I'm trying to execute a .ps1 script on several Windows machines via zabbix agent2 and system.run.
Code:
system.run[powershell.exe -NoProfile -ExecutionPolicy Bypass -file "%programfiles%\Zabbix Agent 2\scripts\script.ps1",nowait]
Code:
2023/07/21 16:49:06.126559 check 'system.run[powershell.exe -NoProfile -ExecutionPolicy Bypass -file "%programfiles%\Zabbix Agent 2\scripts\script.ps1",nowait]' is not supported: Cannot find path to cmd.exe command: exec: "cmd.exe": cannot run executable found relative to current directory
thx,
Serpentes
Comment