In my organization we are using virtual machines that are running UiPath RPA processes. In UiPath Orchestrator it is visible in case a process is running via Orchestrator on the virtual machine.
It is also possible to log into the virtual machines manually, via Remote Desktop Connection. The issue now is that sometimes when an RPA developer is manually logged in to the virtual machine, another user is starting a process from Orchestrator that is using the same machine. This will result in the person manually logged in to the machine being thrown out.
I am trying to come up with a way to detect if a user is already logged in to the machine, and somehow check this before any process is started.
I have experimented and created two batch files that I scheduled via Windows Task Scheduler. The batches create a file in a network drive when a user is unlocking the remote machine, and delete the file when the remote machine is locked.
My issue now is that I would somehow need to check if this file exists before starting any process via Orchestrator. So it cannot be done via UiPath, because this would immediately connect to the machine and throw out the other user.
Anyone who has had some similar problem and solved it?