Skip to content

shubham184/orchestrator-powershell

 
 

Repository files navigation

UiPath Orchestrator PowerShell library

A PowerShell library for interacting with UiPath Orchestrator.

Getting Started

Download the desired version module from the Releases page, or build solution to obtain the UiPath.PowerShell.dll module. Import the module in PowerShell:

PS C:\>Import-Module UiPath.PowerShell.dll

Use the PowerShell Get-Command to obtain all cmdlets exported by the module:

PS C:\>Get-Help -Module UiPath.PowerShell

You can obtain each command syntax using PowerShell's own Get-Help:

PS C:\>Get-Help Add-UiPathRobot

To start using the library, you need to connect first to a running Orchestrator instance. Use the Get-UiPathAuthToken cmdlet:

PS C:\>Get-UiPathAuthToken -URL <orchestratorurl> -Username <OrchestratorUser> -Password <password> -Session

The -Session flag makes the authentication persist on the PowerShell session for up to 30 minutes. After this you will not have to authenticate again each cmdlet. Some examples:

S C:\> Get-UiPathRobot | Format-Table

 Id LicenseKey MachineName    Name           Description
 -- ---------- -----------    ----           -----------

132            RERUSANU       PwdRobot1
133            RERUSANU       PwdRobot2
134            RERUSANU       PwdRobot3

For more example, see the docs

Prerequisites

To build the project, In addition to the C# SDK (the solution is Visual Studio 2017 based) you will need autorest. To use the library you won't need anything but the build artifacts.

License

This project is copyright UiPath INC and licensed under the MIT License - see the LICENSE.md file for details.

About

UiPath Orchestrator PowerShell cmdlet library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.7%
  • PowerShell 0.3%