Advanced settings with Windows RDP clients


The standard RDP client template in Hypersocket only allows you to do single sign on to your servers, but sometimes you may need to set some of the advanced options that the client provides, such as a different resolution or sharing local resources.

This article will describe how this can be done, using the example of disabling the clipboard when in an RDP session.


1. Preparing an RDP connection file

Run the mstsc.exe program

Type in the hostname you will be using to connect to. Click on Show Options.


In this example, we want to disallow the use of the clipboard, so click on the Local Resources tab and deselect the Clipboard option.


Now go back to the General tab and click Save As...

Name the connection file and save it.



2. Create an Application resource

Now we can create an Application resource in Hypersocket.

In the Hypersocket UI, as the admin user navigate to Network->Applications and click Create.


Give the Application a name, here we've named it myRDP.

Set the Operating System to Windows Vista (which means Vista and higher) and the executable to mstsc.exe.

For arguments, add in the following two arguments:


The first argument tells the client to connect to the hostname, the second to use the connection file that will be uploaded in a moment. Replace the name myRDP and connectionfile as appropriate for your configuration.


NOTE: When you upload a file as part of an application definition, the Hypersocket client will download it into the client install directory and place it under a directory with the same name that you called the application shortcut. ${client.userdir} is a special replacement attribute that will point to the client install location.

Click on the Scripts tab and in the Pre-Launch Script section, type in:

cmdkey /generic:TERMSRV/${hostname} /user:${username} /pass:${password}

This is the command which will pass your username and password to the RDP client.


Click on the Files tab, then click the Plus icon. Click Choose file, then find your RDP connection file created earlier. Select it and click Open.

The filename should then appear next to the Choose file button, click the Upload icon on the right hand side.


When the file is uploaded, you will see some information about the file.

Click the Create button at the bottom to finish creating the application.


3. Create an Endpoint resource

Now navigate to Network->Endpoints and click Create.

Name the resource and type in the hostname that will be used (Note: this must match what was entered in the connection file as we hard coded the address in it earlier).


Select the Protocols tab and add the RDP protocol.

Select the Applications tab and add the myRDP Application we created earlier.


Select the Roles tab and add the roles who will be given access to this resource, then click Create to finish creating the resource.

Now users should be able to see and connect to this resource, in which the clipboard will be disabled.

This process can be repeated for any of the advanced features you may want to set for the RDP client.

Have more questions? Submit a request