Execute Program Action on Remote Host
I created .bat files to query and restart a Tomcat service on a remote host.
The files execute correctly when run manually, but when they are configured as an Execute Program Action (local) there is a
The commands are:
SC \\servername query Tomcat5
SC \\servername stop Tomcat5
SC \\servername start Tomcat5
SC \\servername query Tomcat5
The error messages are:
[SC] EnumQueryServicesStatus:OpenService FAILED 5:
Access is denied.
[SC] OpenService FAILED 5:
Access is denied.
[SC] EnumQueryServicesStatus:OpenService FAILED 5:
Access is denied.
[SC] StartService: OpenService FAILED 5:
Access is denied.
I would configure the Action to execute on a remote host but no hosts are on the dropdown list, and I have yet to discover how to add a new host in your documentation.
How do you either configure the user/password for the Action to run as with the appropriate permissions, or add a host so that the action can run on the remote host?
New to ADSelfService Plus?