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

Hi,
we have Win Server 2016 Azure VM and I’m constantly getting above error, problem is, that it looks totally random, sometimes it runs for 30 hours, sometimes for 30 minutes before session is locked out.

All standard parameters (screensaver, IDLE time in Group Policy) are either set to 0 or to extensive amount, still happening randomly.

Any idea what might be wrong or what should I do stop making it happen?

Thanks!

@Jiri_Pospisil

Are you using any shortcut keys…or did you happen to check the screenshot of what has happened?

Are the bots installed in service mode?

Is the machine logged out/signed out before the run if aomeone logged in?

Cheers

Hello @Jiri_Pospisil, Are you using the Attended Bot process?
Make your local machine as well as VM settings of sleep and off my screen set as Never.

Thank you for answers.
It is sending something to target app, but normal stuff like clicks and strings, once it’s locked off it is not possible to take any screenshot.
Yes, installed in service mode, nobody signed in before/during execution except service account.

It is unattended process and all power setting is set to Never.

@Jiri_Pospisil

Did you happen to check the event viewer may be you might see something there before this error happens or during

Cheers