Use RDP Connection

You can connect to devices over an RDP connection if session management via Remote Desktop Sessions is preferred to normal login sessions.

Prerequisites
To use RDP your environment must comply with the requirements for the Lock Screen feature.
Steps to use RDP
  1. Install Desktop Automation Service on remote devices. Configure the service to work in single user mode and specify a token. See Configure the Desktop Automation Agent.

  2. In the Desktop Automation Workflow, insert the Initiate Session step.

  3. Specify all necessary options for the RDP connection.

    The Initiate Session step waits until the connection is established before continuing robot execution. If remote connection fails, an error message is provided.

If the system you are connecting to is configured to show an extra screen when the user logs in, set a number of seconds to wait before dismissing the extra screen during login in the "Logon dialog dismissal timeout" option of the Initiate Session step. If this screen is not dismissed, the action may fail.

Keep RDP alive
Windows may be configured to disconnect and terminate RDP sessions that are idle for too long. To prevent from disconnecting, the RDP connection service in the robot sends a dummy keystroke signal to the remote session every several seconds. The default value for the time interval between the key strokes is 30 seconds. To change the time interval, specify it in the Keep-awake key press interval option of the Initiate Session step in seconds. To turn off this option, specify zero (0).
Note Only one RDP connection to a specific device can exist at a time, but you can have several RDP connections to different devices. A new RDP connection to the same device closes any existing RDP connection on this device.

If the device is a static reference, you can see available applications in the Recorder view after RDP connection is established.

If the device is a dynamic reference, a Connect To Device is needed to automate the remote device. We recommend setting up timeout and some retry attempts to make sure the RDP connection is established. Once this step is executed, you should see available applications in the Recorder view.

Note To check that the RDP connection is established, look for the kapowlock process in the Windows Task Manager. If the process is present in the list of processes on the computer executing your robot, the connection is active.