Get Services

The Get Services action retrieves a list of running services. It gathers only the non-device driver services and the services that are not drivers from the local computer and stores it in a List. You can create this List before creating and running the action.

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

Create a Get Services action

  1. Ensure that the user who will be running this action is a local administrator and the bot is running as an administrator.

  2. (Optional) Create a uniquely named List with one named column, for example, "Service name."

  3. On the Actions list, click Computer and select Get Services.

  4. Select the List name that you created in step 2. Or, enter a new name for the list or click the Magic Wand to use the Expression Builder.

  5. (Optional) Select Overwrite to overwrite the List if it already exists. If this is not selected and a list already exists, the action will fail.

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

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

  9. 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 creates a List with the following columns of information: 

  • Service Name
  • Display Name
  • Status
  • Service Type