How to Use UiPath for RDP Session Automation

How to Use UiPath for RDP Session Automation? Step-by-Step Guide

You can use UiPath for RDP session automation by deploying its Remote Desktop Automation capabilities, which allow the UiPath Robot to interact with virtual machines and remote desktops as if it were a human user. UiPath accomplishes this using technologies like computer vision, image recognition, keyboard and mouse emulation, and remote runtime plugins that transmit UI elements between your local machine and the remote desktop. In short, UiPath can automate almost any action inside an RDP window—such as logging in, launching applications, extracting data, or entering information—by simulating real user activity or by installing UiPath components directly on the remote machine for full element-based control.

In this guide, we’ll explain how UiPath works with RDP, how to set up remote automation, and the best practices for ensuring smooth, reliable performance in your automation workflows.

Understanding RDP Session Automation in UiPath

An RDP (Remote Desktop Protocol) session is a Windows feature that allows a user to connect to another computer and control it remotely. In most enterprise environments, business processes are executed on remote virtual machines (VMs) or servers. UiPath can automate processes within these remote environments using one of two approaches:

  1. Attended Automation (via RDP window on local machine):
    The bot interacts visually with the open RDP window, mimicking a user’s mouse clicks and keyboard inputs.

  2. Unattended Automation (directly on the remote VM):
    The UiPath Robot runs directly inside the remote machine without needing a visible RDP session. This is achieved using UiPath’s Remote Runtime and UiPath Assistant/Robot installed on that VM.

Both methods allow full automation, but the second approach is more stable and faster since it doesn’t rely on image recognition over a remote connection.

How UiPath Handles RDP Automation

UiPath uses several key components and technologies to automate RDP sessions effectively:

  • UiPath Remote Runtime: A small component installed on the remote machine that allows full access to UI elements instead of relying only on image recognition.

  • UiPath Extension for RDP: Installed on the local machine, this extension communicates with the Remote Runtime, enabling the Robot to recognize UI elements inside the RDP session.

  • Computer Vision Activities: When element-based automation isn’t possible, UiPath uses Computer Vision (AI-based OCR) to detect UI elements visually.

  • Keyboard & Mouse Simulation: UiPath can send keyboard shortcuts or mouse actions directly to the RDP session window.

This combination allows UiPath to automate everything from simple data entry to complex application workflows running inside a remote desktop session.

Step-by-Step Guide: How to Use UiPath for RDP Session Automation?

Step 1: Prepare Your RDP Environment

Before automating RDP sessions, ensure that:

  1. The remote machine is accessible via Remote Desktop.

  2. You have login credentials for the RDP host.

  3. UiPath Studio and Robot are installed on your local machine.

  4. The UiPath Remote Runtime is installed on the remote machine (if you need element-level automation).

You can download the Remote Runtime installer from UiPath’s official website or directly from UiPath Studio.

Step 2: Install UiPath Extension for RDP

The RDP Extension bridges your local machine and the remote session. It allows UiPath to detect and interact with UI elements inside an RDP window.

Installation steps:

  1. Open UiPath Studio.

  2. Navigate to ToolsUIPath Extensions.

  3. Choose Remote Desktop.

  4. Follow the installation instructions.

  5. Restart UiPath Studio.

Once installed, UiPath will automatically detect RDP windows when running automations.

Step 3: Install UiPath Remote Runtime on the Remote Machine

To achieve precise automation, install the UiPath Remote Runtime on the remote (target) machine.

Steps:

  1. Log into the remote desktop.

  2. Run the UiPath Remote Runtime installer.

  3. Follow on-screen steps and restart the machine after installation.

  4. Confirm that UiPath Remote Runtime appears in Windows Services.

This setup allows UiPath to recognize buttons, text boxes, and menus inside the RDP session as if it were running locally.

Step 4: Create an RDP Automation Workflow in UiPath Studio

Now you can start building your automation.

Example Scenario: Automating data entry into a remote accounting application.

Steps:

  1. Launch UiPath Studio and create a new process.

  2. Drag the Open Application or Start Process activity and specify:

    mstsc.exe
  3. Add a Type Into activity to enter the remote computer’s IP address.

  4. Use Send Hotkey (Enter) to initiate the connection.

  5. Add Type Secure Text to enter credentials (using credentials stored in Windows Credential Manager).

  6. After the RDP session opens, use Attach Window to target the RDP session window.

  7. Inside the attached scope, use activities like Click, Type Into, and Get Text to perform automation within the remote session.

If you installed UiPath Remote Runtime, these actions will be element-based (more accurate). If not, UiPath will rely on Computer Vision to locate on-screen items visually.

Step 5: Using Computer Vision for Visual Automation

If you cannot install UiPath components inside the remote desktop (for example, in a restricted or third-party environment), UiPath’s Computer Vision (CV) activities can automate applications based purely on their graphical interface.

To use CV automation:

  1. Install the Computer Vision package from UiPath’s Manage Packages window.

  2. Use the CV Screen Scope activity to define the RDP session window.

  3. Add activities like CV Click, CV Type Into, and CV Get Text to perform actions inside the remote screen.

  4. Use the CV Refresh or Delay activities to handle screen changes or loading times.

Computer Vision uses AI-powered OCR to identify on-screen elements even when traditional selectors aren’t available, making it a reliable fallback for RDP automation.

Step 6: Handling Session Timeouts and Disconnections

RDP sessions can sometimes disconnect during automation, especially in unattended scenarios. To prevent automation failure:

  • Use Reconnect RDP Session activities or scripts to automatically re-establish connections.

  • Keep the RDP session active by disabling timeouts via Group Policy:

    Computer Configuration > Administrative Templates > Remote Desktop Services > Session Time Limits
  • For unattended robots, deploy UiPath directly on the remote server so that it runs locally, not over an RDP session.

You can also schedule periodic checks in UiPath Orchestrator to monitor robot status and reconnect if needed.

Step 7: Using UiPath Orchestrator for RDP Automation Management

If you manage multiple automations across remote machines, UiPath Orchestrator simplifies deployment, monitoring, and scaling.

Through Orchestrator, you can:

  • Manage RDP credentials securely.

  • Schedule unattended automations on remote machines.

  • Distribute workloads between multiple RDP-connected robots.

  • Monitor logs and handle exceptions centrally.

This setup ensures continuous, unattended automation without the need for manual RDP sessions.

Best Practices for RDP Automation with UiPath

  1. Use Element-Based Automation Whenever Possible:

    • Always prefer installing Remote Runtime for reliable, selector-based automation instead of image-based clicks.

  2. Avoid Hardcoding Credentials:

    • Use UiPath Orchestrator Assets or Windows Credential Manager to securely handle login information.

  3. Implement Error Handling:

    • Add Retry Scopes and Try Catch activities to manage connection drops and timeouts.

  4. Optimize Screen Resolution:

    • Maintain a consistent resolution for the RDP session; differences can affect image-based automation.

  5. Test with Computer Vision as a Backup:

    • In locked-down systems where runtime installation is impossible, train CV models for stability.

  6. Monitor Performance:

    • Use UiPath Logs and Orchestrator Analytics to track success rates, delays, and exception causes.

Final Thoughts

Using UiPath for RDP session automation empowers organizations to manage tasks on remote systems efficiently without manual intervention. Whether you automate RDP windows visually through Computer Vision or install UiPath Remote Runtime for element-based precision, UiPath provides flexible solutions for every environment.

With proper setup — including the RDP extension, Remote Runtime, and Orchestrator scheduling — UiPath can automate everything from remote application logins and data transfers to large-scale server maintenance workflows.

Scroll to Top