Error: Cannot bring the target application in foreground because the Windows session is locked

Hi everyone,

I’d really appreciate if you could help me with this issue I’m facing.
I use a remote server and when I’m logged in the workflow executes successfully, but I can’t execute unattended. If I try to sign out of the machine I get a message in the Orchestrator that the machine is disconnected. If I just close it without signing out I get this error - Cannot bring the target application in foreground because the Windows session is locked.
I’ve uninstalled studio and tried to install again as I saw that when I’ve done it before there was an option to choose between Service and User mode, but I don’t see that option anymore.

@elitsa.kerefeyska

  1. The robot needs to be installed in service mode
  2. Are you an enterprise customer? if yes you can install in service mode else you cannot

cheers

Hi, Anil!
We’re currently on the Enterprise pro trial.
Is Service mode chosen while installing? What do I have to do in order to install in Service mode? These are the options I got:

@elitsa.kerefeyska

you already selected automation developer before that only you need to select robot and then service mode

cheers

As mentioned you need to install the robot in service mode and
You need to setup unattended license for this machine and
If issue persist try below additional step I have had faced this and this was suggested by UiPath support team member :+1:t2:

Try this in the end if still doesn’t work after installing in service mode - you can go to machine settings and enable radio button login to console and select no

@elitsa.kerefeyska

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.