Unattended cannot bring the target application in foreground because the Windows session is locked

Hi UiPath Team.
Refer to above issue.

My enviroment are:

  • EC2 Amazaon.
  • There are 2 session ( administrator and rpauser(admin level) to install UiPath software and install with the only for this user.(not for all users)
  • Use the unattended license.

I can run the bot and the bot starting.
When the bot going to typing user/pass of SAP. It cannot bring application.

@nopadol.c,

Install the robot in service mode and you should be good.

UipathStudioCloud.msi does not has the Service Mode option for select (version 2023)

@nopadol.c,

You can raise this with UiPath support team and they should be able to help you on how to install it in service mode.

How to do please advise?

@nopadol.c

Use https://customerportal.uipath.com/

1 Like

@nopadol.c

  1. Are you on community version? if so you cannot install in service mode hence no complete unattended is possible
  2. You have to signout the user before starting from orchestrator so that robot logs in. this is applicable when installed in service mode

cheers

Hi @nopadol.c

Pls check this document and install robot as service mode.

I am enterprise version. UipathStudio.msi does not has the option of unattended to install. How to do please advise?

@nopadol.c

msi ideally would have the option…while installing select robot and then it would ask usermode and service mode

cheers

I did it. But not work.
I installed with this command.

UiPathStudio.msi ADDLOCAL=DesktopFeature,Robot,RegisterService

The service host does not come.

@nopadol.c

please go to orchestartor and on left top click on ? symbol and then select downloads from there you will get option to download robot studio etc…try to get the msi from there and try installing

cheers

My objective

  • There are 2 licenses of Unattended on EC2 Amazon.
  • There are 2 users for sign-in with diference sessions.
  • I want to Install UiPath Assistant, UiPath Studio for me only.
  • I want to run in Service Mode for Unattended license

Can I do please advise?

@nopadol.c

you can do that please check and download the msi for robot…Steps mentioned above

if both are unattended then as per license you should not be using studio

cheers

I downloaded it from the Ochestrator and un-install, install again.
It does not work.

If I install with option to all users will show as image.

@nopadol.c

Please go ahead and install with that

Studio can be installed per user as well but unattended is per machine but connection would be per user when you configure

Cheers