Subject: Running Mstsc.exe after connecting

Subject: Running Mstsc.exe after connecting

avatar

I guess this is an easy one.. I connected with VPN and RDP, but on this desktop I am on now, I need to make one more RDP connection.

I placed an RDP file in the C:\temp folder on the machine, and I wrote a Typing macro line : mstsc.exe c:\temp\customer.rdp{ENTER} (combined with an initial wait of 30 seconds), I see a popup that RDM is executing a macro, but nothing happens.

Is there a better/different way to do this?

All Comments (4)

avatar

Hi,
Unfortunately it's not possible to do automatically the session nesting. RDM does not have access to the remote machine. The only workaround is to add a shortcut on the desktop and manually double click it.

David Hervieux

avatar

For your macro to work, you need to set cmd.exe to be started upon login IN THE REMOTE HOST, if it is the focused window, it will work

Note that on my win2012 machine I had to disable server manager being displayed, and I also had to set the macro initial wait to 15secs!!!, but the keyboard macro does appear in the cmd window and runs.

you need to adjust the initial wait AND you need to ensure you actually log off every time.

Maurice

avatar

hi Robbin,
why don't you add the command you want to execute upon logon to the task scheduler and execute it using the trigger "when i log on"?

KR
Guenther

avatar











Didn't think of that before but I created a task that only runs when my user logs in, works great!

Thanks for that!