Disconnecting bot from orchestrator

HI All ,
we are using floating licence model . multiple but will be using one floating licence. as long as there is necessity of running “N” number of bots simultaneously this works . “N” being the total number of licences. say if there are 6 licences up to 6 bots can run simultaneously using the floating licence .
now here is the problem.
we have strictly instructed the business users to disconnect the bot from the orchestrator after the task gets completed (Attended bots ). but if she/he dont do it , then in idle state the bot will be still consuming licence.
in case of un attended no questions !! even after the task completion the bot will be consuming .
so if there is a mechanism using which the bot can disconnect itself after completing the task then it will be a great advantage for business.

any thoughts guys ?

1 Like

Hi @karges,
If you know on which machine user forgot to disconnect the robot and you have administrator privileges you can disconnect it from machine from powershell using command:

  • Enterprise Edition
C:\Program Files (x86)\UiPath\Studio\UiRobot.exe --disconnect
  • Community Edition
C:\Users\<username>\AppData\Local\UiPath\<Actual Studio version folder>\UiRobot.exe --disconnect

EDIT:
I forgot to mention that you need firstly to connect to this machine with use of Enter-PSSession command for example.

2 Likes

They actually have to disconnect robot tray, no need to remove them from orchestrator.

3 Likes

Good point. I forgot that this will bring license back :slight_smile:

1 Like

Cool solution . but here is the catch we need to make sure , the bot is not running , ie idle.

1 Like

Hello @karges if you have any mechanism that will stop the UiPath Robot service i.e UiRobotSVC… then just call it after the process completion.
once the service is stopped UiPath license will automatically be released.
you need admin access to stop the service though…

And the service can be stopped from PowerShell as well :slight_smile:. Maybe invoke powershell code at the end of the workflow with command to stop the service? (just thinking)

yes but in that case user need to have admin access… which I believe most of enterprise user don’t have.

1 Like

From the above discussion, I believe that all the above mentioned suggestions are to be done manually. Is there any automated process through which UiPath robot will disconnect automatically? i.e. no manual process. I want that when my service is executed completely, UiPath robot should itself disconnect, so that license consumption is stopped.