Adding Custom RDP Properties in Windows Server 2012 VDI (RDS) Environments

Adding Custom RDP Properties in Windows Server 2012 VDI (RDS) Environments

This Wiki guides you through the process of adding custom RDP properties to you VDI (Session-Based as well as Virtual Machine-Based) deployments.

With Windows Server 2012 there is no option to set this in the RDMS Server Manager GUI. In order to add custom RDP properties we need to use the RemoteDesktop PowerShell module.

The command to do this is Set-RDSessionCollectionConfiguration

For example, if we want to remove the connectionbar we could run the following command:

Set-RDSessionCollectionConfiguration –CollectionName QuickSessionCollection "displayconnectionbar:i:0"

image

These settings are are stored in the registry of the RD Connection Broker(s) that are part of the Session Collections deployment.

image

Do note that if we wanted to add an additional custom RDP property we would have to specify all the custom RDP properties in one command. For example if we would add an additional custom RDP property to map the local C: drive and run

Set-RDSessionCollectionConfiguration –CollectionName QuickSessionCollection "drivestoredirect:s:C:"

That would overwrite the previously added custom RDP property.

image

We obviously have to add all the custom RDP properties at once. To make this work we need to add a linefeed character (which is: `n) between the options otherwise it won’t be applied properly. The command would look like this:

Set-RDSessionCollectionConfiguration –CollectionName QuickSessionCollection "drivestoredirect:s:C: `n displayconnectionbar:i:0"

This will result in a published desktop with the following properties

image

A good listing of overall RDP file settings, which versions of RDP they are relevant to and what they do is at : http://www.donkz.nl/files/rdpsettings.html
Additional, subset of valid RDP file settings are:

  • Administrative session:i:1        Equivalent to /admin flag used with MSTSC.EXE

 
Source and more info: http://microsoftplatform.blogspot.nl/2013/01/adding-custom-rdp-properties-in-windows.html

Leave a Comment
  • Please add 1 and 5 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • klaas j.m. langhout edited Revision 2. Comment: add rdp file entry (start to move over rdp file settings to remove external link)

Page 1 of 1 (1 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Corrected the tags section

  • klaas j.m. langhout edited Revision 2. Comment: add rdp file entry (start to move over rdp file settings to remove external link)

  • Quick update re "Custom RDP Settings".  These need to be prefixed with the parameter "-CustomRdpProperty". Taking the example above:

    Set-RDSessionCollectionConfiguration –CollectionName QuickSessionCollection -CustomRdpProperty "drivestoredirect:s:C:"

    If you can't insert the LineFeed character directly, as in the example above, the following example may help:

    $a = [char]10

    $b = "drivestoredirect:s:C:" + $a + "displayconnectionbar:i:0"

    Set-RDSessionCollectionConfiguration –CollectionName QuickSessionCollection " -CustomRdpProperty $b

Page 1 of 1 (3 items)