This topic is probably around before but I couldn’t get a clear answer. I created a process in UiPath, works fine. Run it with UiRobot in cmd/bat/etc. using -process or file arg., get “Access Denied” err
I need to be able to run this process from cmd/powershell etc.
hi @Nick101,
Can you please confirm how are trying to run this process?
Are you logged into the system when trying to run this?
Or you are trying to run this unattended mode?
Regards
SOnali
Hi @Nick101
You need to ensure that you run CMD or PowerShell as an administrator. Additionally, verify that the user running the process has the appropriate permissions in Orchestrator and on the machine. You should also use the correct syntax for the UiRobot command, either by specifying the full path to the .xaml file or using the process name with the -process argument. Finally, make sure the robot is properly connected to Orchestrator and has the necessary access rights.
If you found helpful, feel free to tick as a solution.
Happy Automation
Inside the cmd as admin
C:\Program Files\UiPath\Studio>UiRobot.exe execute --file “C:\UiPath_QA_Qual\QA_Deploy_Success\Main.xaml”
Access is denied.
C:\Program Files\UiPath\Studio>UiRobot.exe --process QA_Deploy_Success
UiRobot 23.10.6+Branch.support-v23.10.Sha.e30bd3e90bab2ba836c95a56f9f7ae8e5200df73
c UiPath
ERROR(S):
Verb ‘–process’ is not recognized.
Hi @Nick101,
Please refer below, looks like publishing package as nupkg is required for windows based project.
Hence, please try to publish the package and use below syntax, after -file, instead of .xaml provide nupkg package name:
C:\Users\USERNAME\AppData\Local\Programs\UiPath\Studio\UiRobot.exe execute --file UipathBatchFile.1.0.1.nupkg
OR
C:\Program Files\UiPath\Studio>UiRobot.exe execute --file UipathBatchFile.1.0.1.nupkg
Or
if you want to run with process id, use -p instead of -process
Regards
Sonali
Please check below,