The Get Service State action populates a variable with the state (stopped, running, etc.) of a selected service. The variable must be created in an earlier step using the Create Variable action.
From the Task Builder Available Actions pane, open the (draftnote: which?) folder and double-click the Get Service State action or drag it into the Steps pane.
In the Service name box, enter the name of the service.
In the Populate variable with the status box, select the variable to populate.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
When finished, click OK to save settings and close the properties dialog window.
Adding Task Steps
Get Service State Action