Stop Service
The Stop Service action stops a Windows service.
Note: The Actions Quick Reference provides a complete list of actions that you can print for easy reference.
Create a Stop Service action
-
Ensure that the user who will be running this action is a local administrator and the bot is running as an administrator.
-
If you do not already know the exact name of the service that you want to stop, find it.
-
Open the Services window on the computer.
-
Right-click on the service and select Properties.
-
Identify the Service name at the top of the Properties window.
-
-
In Nintex Bot, on the Actions list, click Computer and select Stop Service.
-
Enter the Service name (not the display name). Optionally, click the Magic Wand to use the Expression Builder.
-
Determine how long to wait for the service to settle before declaring the stop a success or failure. To enforce a timeout, select Timeout (secs) and enter the number of seconds to wait. By default, this check box is selected and Nintex Bot will wait for 30 seconds before declaring the stop a success or failure. If this check box is not selected, then Nintex Bot will wait indefinitely for the service to stop.
-
If needed, adjust the Run error task settings to fine tune how the action runs.
- Run error task: A botflow containing an error task automatically runs the error task in the event of an error. If the botflow does not contain an error task, the botflow stops in the event of an error.
- Stop on error: The botflow stops in the event of an error.
- Ignore errors: The action is skipped in the event of an error and the botflow attempts to execute the next action.
-
(Optional) Add a Note to document special instructions or functionality.
-
Toggle the run switch to Run and click OK to execute and save the action.
-
When the action is executed, Nintex Bot stops the service that the user has selected by entering the service name.
Note: The run switch is set to Run by default. To create or modify this action without executing it, click the slider to change the option to Don't Run. For more information, go to Action Builder.
Important: If the user is not a local administrator and the bot is not running as an administrator, the action will fail and display a warning error stating that the service state change request failed.