Launch remote desktop (RDP) from UI action

jogmen
Giga Contributor

I've been working with the new Cloud Provisioning capabilities within Calgary (which are very nice, btw) and found one item to be lacking.

UI actions have been pre-built to allow a user to start, stop, or pause a virtual machine via UI action when right clicking a VM CI. I would like to add a "Connect via RDP" UI action as well.

I have the RDP connection string stored within the CI record. I am not sure how to push that down to the end user's laptop to actually launch the RDP application (i.e. mstsc.exe) on their computer.

Thoughts, suggestions?

2 REPLIES 2

Not applicable

Joe,

You should be able to initiate a RDP using mstsc by using activeX.
This would only work for Windows PC's and you would really have to work on the security settings of the browser otherwise the activeX object will not run properly.

function Run() {
try {
var objShell = new ActiveXObject("WScript.Shell");
objShell.Run("mstsc /v:192.168.1.254");
} catch(e) {
alert(e);
}
}

You are probably better off using a web based version of RDP.
Hope this helps.


hi Laurens,

Just used your solution! Thanx!

I just posted an article about using this solution in Chrome by adding an extension to it, called IE TAB. Check this

regards, Peter