Hi!
I would like to find some installed application in remote computers.
I have a basic script for this:
$var=gwmi win32_product | where{$_.name -match "application name"}
if($valt -eq $null}
{
echo "0"
}
else
{
echo "1"
}
I set the execution policy in powershell to unrestricted.
The firewall is disabled and the zabbix agent is alive in the remote hosts
and the remote command execution is enabled in client side
I try to send a remote command with zabbix_get from zabbix server
and the answer is "zbx_notsupported"
this is the command which does not work:
zabbix_get -s remotehost -k system.run['powershell.exe -noprofile -Executionpolicy bypass -file //remote_server/share/script.ps1']
the remote share is shared for everybody and the NTFS permission is: everybody "full controll"
if I run this script in a local computer once, it works
after that, the zabbix_get command is working
I don't understand why...
I know probably it isn't a zabbix's problem,
but I would like to understand what the problem is
is somebody could help me in this?
Thx a lot!
I would like to find some installed application in remote computers.
I have a basic script for this:
$var=gwmi win32_product | where{$_.name -match "application name"}
if($valt -eq $null}
{
echo "0"
}
else
{
echo "1"
}
I set the execution policy in powershell to unrestricted.
The firewall is disabled and the zabbix agent is alive in the remote hosts
and the remote command execution is enabled in client side
I try to send a remote command with zabbix_get from zabbix server
and the answer is "zbx_notsupported"
this is the command which does not work:
zabbix_get -s remotehost -k system.run['powershell.exe -noprofile -Executionpolicy bypass -file //remote_server/share/script.ps1']
the remote share is shared for everybody and the NTFS permission is: everybody "full controll"
if I run this script in a local computer once, it works
after that, the zabbix_get command is working
I don't understand why...
I know probably it isn't a zabbix's problem,
but I would like to understand what the problem is
is somebody could help me in this?
Thx a lot!
Comment