Server Actions Remote Execute
-
Hi
I try to remote execute a powershell script triggert over event processing policy.
The action Type is " execute command on remote node via agent" .The agent config file looks like:
ActionShellExec = dienst.restart:C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\WindowsPowerShell\v1.0\dienstrestarttest.ps1The powershell script "dienstrestarttest.ps1" should restart the printer spooler service, but it doesn´t.
The alarm browser shows the event correct.
-
Hi,
please provide screenshot of your action configuration and rule that triggers it.
Best regards,
Victor -
-
Hi,
are you sure that hostname will be resolved correctly? You may try to use %a macro instead that will be expanded into node's primary IP address, or reference to node by name using @%n construct (which is the only option if you are using agent-to-server connection).
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
