Resume Service
Resumes the operation of a Windows service according to the name.
Command availability: IBM RPA SaaS and IBM RPA on premises
Description
Resumes the operation of a Windows service according to the service name.
Script syntax
IBM RPA's proprietary script language has a syntax similar to other programming languages. The script syntax defines the command's syntax in the script file. You can work with this syntax in IBM RPA Studio's Script mode.
resumeService --name(String) (Boolean)=value
Input parameters
The following table displays the list of input parameters available in this command. In the table, you can see the parameter name when working in IBM RPA Studio's Script mode and its Designer mode equivalent label.
Designer mode label | Script mode name | Required | Accepted variable types | Description |
---|---|---|---|---|
Service Name | name |
Required |
Text |
Name of the service to be resumed. |
Output parameters
Designer mode label | Script mode name | Accepted variable types | Description |
---|---|---|---|
Result | value | Boolean |
Returns true if the service is successfully resumed, otherwise returns false . |
Example
The command resumes operation of the Windows service called "wuauserv" (Windows Update), which had been paused.
defVar --name resumeSuccess --type Boolean
pauseService --name wuauserv
resumeService --name wuauserv resumeSuccess=value
logMessage --message "Result: ${resumeSuccess}" --type "Info"
Limitations
Use the service name instead of the service display name for commands that handle Windows service. Ex: Use IBMAUTService and not the display name which is IBM Auto Update Service.