Ad Widget

Collapse

Remote powershell script running..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dekker007
    Junior Member
    • Mar 2015
    • 2

    #1

    Remote powershell script running..

    Hello i want remote run a powershell script from the zabbix server by action.. but not work. What do i wrong:

    set on the zabbix_agentd.conf the next parameter (extern server):

    UserParameter=BadblockCheck,powershell.exe -ExecutionPolicy Bypass -Nologo -NoProfile -file "C:\namepowershell.ps1"


    How most i set the action.. Try much things but not work.

    Set action > Operation

    Execute on : Zabbix agent

    Command: system.run[powershell.exe -ExecutionPolicy Bypass -Nologo -NoProfile -file "C:\namepowershell.ps1]

    What do i wrong.. I have not much experience sorry for that.

    And how can i check on the zabbix server that the remote command works? see nothing in the logging back
    Last edited by dekker007; 16-08-2017, 12:07.
Working...