"Access Denied" when trying to start uirobot process from ssh powershell

Hi !

Here’s what I’m willing to do :

  • I’m building a Python script (which will be called by a WinDev program) to connect via ssh to a remote desktop, and make it run a powershell line to start an UiPath process.

Why I’m doing that :

  • I want to give an UI to my coworkers to let them be able to run the process I made (which takes 20 minutes and can’t be run in back as it does OCR scrapping) on a remote desktop designed exclusively for automations.

Here’s what I have done :

  • My WinDev program perfectly calls the Python script
  • My Python script connects to the remote desktop properly using an administrator account with max level permissions. It works in ssh and uses the “winrm” module
session = winrm.Session(host, auth=('{}@{}'.format(user,domain), password), transport='ntlm')
session.run_ps("uirobot execute --process 'TestWindowProcess'")

(- I’ve already made tests to start an UiPath process locally from both Powershell and Python on both computers, and everything works fine)

Here’s my issue :

  • Whenever it’s from a Powershell console or from my Python script (both in remote ssh), instead of the command running the UiPath Assistant and starting the desired process, I just get an “Access Denied” error message

So if anyone knows anything to help me resolve this. Either by changing stuff on any of the computers, or by changing my code at any point. I’m open to suggestions

Thanks