Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to create a hyperlink that will invoke a Remote Desktop connection to a Windows Machine?

share|improve this question
up vote 3 down vote accepted

Not as such. You could save an RDP file on your server and offer a link to that, so long as your MIME types are correctly set-up on the server it should download and then when opened by the user, should open RDP with the right settings.

Your not going to be able to just run an executable (in this case mstsc.exe) straight from the browser, that would be a pretty big security hole, the user will need to download something and consciously open it.

share|improve this answer

As Sam mentioned, just store a RDP file on your server or write something that will generate the RDP file for you.

The MIME type you need to send is "application/x-rdp".

I am not sure exactly what you are needing. Another option may be too use a java applet RDP client. For examople (

share|improve this answer

There is a workaround if you only need it for personal use. You could create custom protocol handle and use it through your HTML. Here is a good example.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.