Share via


Adding custom RDP properties in Windows Server 2012 RDS/VDI environments

This Wiki takes you through the process of adding custom RDP properties to for VDI (both Session-based and Virtual Machine-Based) deployments running on Windows Server 2012.

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"
http://lh4.ggpht.com/-TBlQwRpXxXc/UQJWtYq0bVI/AAAAAAAABbk/2HI3L444K_U/image_thumb%25255B17%25255D.png?imgmax=800

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

http://lh6.ggpht.com/-xU6VVWGmCyk/UQJWvZpiFyI/AAAAAAAABbw/arJR2bmWsbw/image_thumb%25255B9%25255D.png?imgmax=800

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.

http://lh3.ggpht.com/-Q9gB3spbNUo/UQJWw6wB7lI/AAAAAAAABcA/2uVWyZmfIc0/image_thumb%25255B11%25255D.png?imgmax=800

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:

http://lh5.ggpht.com/-PJWjhfF6akc/UQJWyqyYNTI/AAAAAAAABcQ/J1v3_rfHTrE/image_thumb%25255B19%25255D.png?imgmax=800

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