Skip to main content

Stop Service

Description

This step stops a running service on a remote Windows machine. You provide the machine name and the service name. Use this step in workflows that shut down services before maintenance, stop application services during updates, or respond to alerts by stopping misbehaving services.

Configurations

Input Tab

No.Field NameDescription
1Step NameName of the step. This name must be unique in a single workflow.
Connection:
2HostProvide the Hostname, Server Name, Fully Qualified Domain Name (FQDN), or IP address of the Windows machine.
Data type: String
This field is mandatory.
3UsernameSpecify the username of the Windows account to authenticate.
Data type: String
This field is mandatory.
Password:
4Accept Value as variable/staticLeave the checkbox unchecked to accept the Password value from a field in the previous steps using a drop-down list.
Enable the checkbox to enter the Password value as text.
Data type: String
This field is mandatory.
5PasswordSpecify the password of the Windows account. The password is encrypted and is not stored in the .psw workflow file.

Password is entered using a widget that supports both text (static value or environment variable) and combo (drop-down with values from previous steps).
If the checkbox above is enabled, the Password field appears as a text box.
If the checkbox is disabled, the Password field appears as a drop-down.
Data type: String
This field is mandatory.
6Service NameSpecify the name of the service to be stopped.
Data type: String
This field is mandatory.
7Force StopSpecify whether to force stop the service. Allowed values are 'YES' and 'NO'.
Data type: String
This field is mandatory. Note: In case of an exception, a Windows return value does not occur if the Force Stop option is set to YES.