The PsService utility allows you to perform operations on Windows Services. See the PsService topic in the PsTools help file for more details.
Because PsService does not provide exit codes to calling programs, Automise is unable to determine success or failure. It is important to manually check PsService output for correct details (or parse the output in the OnStatusMessage script event.)
Consider using the Control Service Action as an alternative to PsService, if possible.
Use this command to output data about one or more services. Services can be queried by service name, group, service type and/or service state.
Use this command to log a service's current configuration details.
Use this command to set a service to "auto", "demand" or "disabled" configuration state.
Use this command to start a stopped service.
Use this command to stop a running service.
Use this command to restart a running service.
Use this command to pause a running service.
Use this command to resume a paused service.
Use this command to list a service's dependencies.
This command ignores any settings on the Remote tab. Instead, it searches all computers on the network for instances of the specified service and lists any which are found.
Check the "Search inactive services (All)" box to search for both running and inactive services (otherwise, PsService only searches for running instances of the service.)
See the PsTools Common Options topic.