Automate Windows Remote Desktop or VM

Ask general questions here.
praneet
Posts: 38
Joined: Thu Nov 08, 2018 2:22 am

Automate Windows Remote Desktop or VM

Post by praneet » Tue Mar 07, 2023 1:04 pm

Hi,

I am able to automate Remote Desktop login, but unable to find objects on logged in VM/Remote Desktop.
My scenario is after login to Remote Desktop I need to copy some files from Specific file location. Tool is capturing VM/Remote desktop window but not able to find Windows elements like file options, tool bars etc.

dhale
Posts: 84
Joined: Thu Feb 27, 2014 7:33 pm

Re: Automate Windows Remote Desktop or VM

Post by dhale » Tue Mar 07, 2023 3:27 pm

Ranorex doesnt work through remote desktop. So what you are trying to do is not possible they way you are trying to do it in Ranorex.
But thats not to say what you are trying to do is not possible, just that its not possible the way you are trying to do it.
Ranorex need to run on a realized desktop. So know that: Remote Desktop != Realized desktop.

You have a couple of options:
Install Ranorex Agent onto the remote PC. Then run your script against the remote agent. Then when the script runs it runs on the remote pc on the remote pc realized desktop.

OR

If the remote PC on on the same network as the automated PC your next best option is to copy files to the remote PC using UNC paths directly to the folders on the remote PC where you need them to be. XCOPY is good at this.