Launch remote desktop (RDP) from UI action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2013 07:16 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2013 04:58 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2018 10:08 AM
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