Run UiRobot process from Windows 10 Task Scheduler

robot

#1

HI,
I want to have UiRobot loaded and running process if restart of computer because of update happens. I have community edition of Ui Path studio and I’m running Windows 10 (english version) 64x. This is what I have
Location of UiRobot.exe
C:\Users\TOM\AppData\Local\UiPath\app-2016.2.6162.37289\UiRobot.exe
Location of process I want to run
C:\Users\TOM\Documents\UiPath\TEST 1\Main.xaml
Location of package
C:\ProgramData\UiPath\Packages\TEST_1.1.0.6188.20716.nupkg

I tried to make something out of


and

but no win there.
Please advice how to solve this


UiPath Scheduler Button
Abbyy OCR
#3


#4

The only drawback is that CE autoupdates. Next time UiRobot might be located in another app-xxx folder. I guess that can be automated too with a script, not with UiPath.


#5

Thanks for that warning. As I’m targeting just start up, I added shortcut to startup in windows, but now, with UiRobot changing folder location, that doesn’t work in the long run. Thanks


#6

This only works if you run it in an active session. I have tried a number of options to run it session 0. Including:

  • Having sequence that launches the Workflow Interactive
  • adding /process or /invoker.
    Can uipath please provide clear documentation on how to best schedule a task to run irrespective if the user is logged on or not? There are a number of articles, but none seem to be conclusive.

#7

Hi @thuylam,
DId you get any solutions for the same problem? I am also facing the same problem.
@badita can you please help us on the same?

Thanks,
Jiban


#8

+1. I’m looking towards a resolution to this, as well.


#9

Even though the documents say this is unsupported this works for me. Note that if you are logged into the virtual server and run the schedule to test you will be immediately logged out.

  • Open Credential Manager->Choose Windows Credentials and add a** new Generic Credentials** with the following format
    • Internet or network address: UiPath:user=<domain\username>*
    • User name: domain\username
    • Password: Your user’s password

Docs are here: https://www.uipath.com/kb-articles/how-to-schedule-a-process-manually


#10

Hi, @bobpeers.
I have done same as mentioned but no success for both logged in & logged out session
Do we have to mention a version of UiPath in Windows generic credential? as shown in document

UiPath=user:<domain\username> v8.1.5855.24349 - v2016.1.5942.30558


#11

Hi @Neeraj83,

actually if the user is always logged in then you don’t need the UiPath=user part I just have the robot to run only when the user is logged in and in the actions you need:

“C:\Program Files (x86)\UiPath Platform\UiRobot.exe”

Plus the arguments look like:

-file “path to file.xaml” --monitor

If I manually start the script I am then logged off the server and the robot runs. This robot runs every night at 1am without issues.


#12

Hi @bobpeers
Thanks for reply!!
I have achieved the scenario if the user is logged in now I want to try for non logged in user.
as per given steps below configuration is done.
a) Task schedule through Windows Task Scheduler with all above steps
b) Set Windows Generic Credential
c) Set Run whether user is logged on or not in Windows Task Scheduler.

All above points are configured still the process is not getting executed.


#13

Any updates on this? I am also having the same problem. Thanks


#14

Hi @ahiller,

This feature is no longer supported. We recommend using UiPath Orchestrator to schedule all your automation projects.

Regards,
Arivu