Disable Service

Note: The Actions Quick Reference provides a complete list of actions that you can print for easy reference.

The Disable Service action disables a specified Windows service. The action works by changing the registry value of the key from:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\”The service name entered by the user”

to: 

(4 = Disabled)

Create a Disable Service action

  1. On the Actions list, click Computer and select Disable Service.

  2. Enter the Service name (not the display name). Optionally, click the Magic Wand to use the Expression Builder.

  3. 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.
  4. (Optional) Add a Note to document special instructions or functionality.

  5. Toggle the run switch to Run and click OK to execute and save the action.

  6. 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.

When the action is executed, Nintex Bot attempts to change the start-up state of the service that the user has selected by changing the service name to Disabled. It will change the start state to Disabled. To see the change, the user will have to refresh the view in the Services application.

Important: If the user is not a local administrator and the bot is not running as an administrator, the action will fail and display an error 5 message stating that access to the registry key is denied.