Make sure that you activate the Remote Desktop License on the server. (more details here: Activate a Remote Desktop License Server | Microsoft Learn)
**Note:** To check if this license is enabled go to: Server manangement and see if the remote desktop services role is installed
Local users should be in the remote desktop group (or in admin group). Domain users can be also added to the remote desktop group on the machine (or pushed using a group policy object)
Note: If the RDP license is not activated or the users (robot users) are not in the right groups you will get errors when you start the job like: A specified logon session does not exist. It may already have been terminated
Note: If you have RDP license only for 3 users and you try to start 4 robots, you will get the following error: Executor start process failed, reason System.UnauthorizedAccessException: Access is denied.
Check C:\ProgramData\UiPath\UiPath.Settings and make sure that you have the following setting: “LoginToConsole”: false. If LoginToConsole is set to true an error occurs when you start the job from orchestrator: “The requested resource is in use”
Note: When you change this settings a service (UiRobotSvc) restart is required
Before starting the robots from Orchestrator make sure that all the users profile are created and you can connect with them using mstsc.