Trigger:Cannot bring the target application in foreground because the windows session is locked

Make sure you installed the robot in Unattended mode (Service Mode) by following the prerequisites from here Installing the Robot

In Orchestrator → Tenant → Manage Access → edit your robot → make sure that LoginToConsole is enabled and set to False

In robot machine make sure that you are logged out (not disconnected).

To log out, open cmd.exe and run logoff

1 Like