Restart Service
Description
This step restarts a service on a remote Windows machine. You provide the machine name and the service name. Use this step in workflows that apply configuration changes, recover from service failures, or perform scheduled restarts as part of routine maintenance.
Configurations
Input Tab
| No. | Field Name | Description |
|---|---|---|
| 1 | Step Name | Name of the step. This name has to be unique in a single workflow. |
| ### Connection: | ||
| 2 | Host | Provide the Hostname/Server Name/Fully Qualified Domain Name/IP address of the Windows machine. This field is mandatory. |
| 3 | Username | Specify the username of the Windows account to authenticate. This field is mandatory. |
| ### Password: | ||
| 4 | Accept Value as variable/static | Leave the checkbox unchecked to accept the Password value from a field in the previous steps of the stream using a drop-down list. Enable the checkbox to display the Password field as a text box. |
| 5 | Password | Specify 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 handles both Text (static value or environment variable) and Combo (drop-down containing values from previous steps). If the checkbox above is enabled, the Password field appears as a text box. Otherwise, it appears as a drop-down list. This field is mandatory. |
| 6 | Service Name | Specify the Service Name to be restarted. This field is mandatory. The data type is String. |
| 7 | Force Restart | Force Restart. Allowed values are only 'YES' or 'NO'. Note: In case of exception, a Windows return value does not occur if the Force Restart option is 'YES'. This field is mandatory. The data type is String. |