Unable to run unattended robot in Amazon workspace

Hi Forum,
I’m using enterprise trial for 60 days also i have scheduled a foreground automation which needs to be run on Amazon workspace machine.

The issue i’m facing is after scheduling unattended BOT, if i disconnect AWS client machine from local machine,
The job is faulted stating the error: Unable to bring foreground as the windows session is locked.
AWS machine should always be logged in our local machine? or the licensening issue? should i need to purchase it?
kindly help me with this issue

Is unattended license is correctly allocated to your AWS workspace machine?
Open UiPath Assistance and go to Preferences - > Orchestrator and check license allocation.

Hi @adi.mehare , Thanks for your reply i have checked the license allocation it is good,

only thing is if i logged in AWS machine in my local machine BOT is running automatically, but if i disconnect AWS from local machine job get faulted,
error: Unable to bring foreground as the windows session is locked.

Please check below thread

@_nithish,

Check if you installed the Robot service on the Amazon workspace machine as service mode or not. If not install it.

If already installed and still this is not working, make sure you are logged out from the VM before bot triggers.