Change Service State activity

The Change Service State activity starts or stops a Windows service on a remote system.

Note: This activity is deprecated and its use in new workflows is not recommended. To replace the functionality of this activity with a scoped activity, use the PowerShell activity designer.

Input Variables

Table 1. Change service state
Field Description
Hostname Hostname or IP address of the target Windows machine on which the service is installed. Use the Resolve DNS activity to resolve hostnames into IP addresses.
Service Name of the Windows Service to start or stop. The service parameter is the service name, not the display name of the service affected.
State There are two actions to select for a service state change: Start or Stop.