|
| 1 | +--- |
| 2 | +title: Customize RDP Properties with PowerShell - Azure |
| 3 | +description: How to customize RDP Properties for Windows Virtual Desktop with PowerShell cmdlets. |
| 4 | +services: virtual-desktop |
| 5 | +author: v-hevem |
| 6 | + |
| 7 | +ms.service: virtual-desktop |
| 8 | +ms.topic: how-to |
| 9 | +ms.date: 06/03/2019 |
| 10 | +ms.author: v-hevem |
| 11 | +--- |
| 12 | +# Customize Remote Desktop Protocol properties for a host pool |
| 13 | + |
| 14 | +Customizing a host pool's Remote Desktop Protocol (RDP) properties, such as multi-monitor experience and audio redirection, lets you deliver an optimal experience for your users based on their needs. You can customize RDP properties in Windows Virtual Desktop using the **-CustomRdpProperty** parameter in the **Set-RdsHostPool** cmdlet. |
| 15 | + |
| 16 | +See [Remote Desktop RDP file settings](https://docs.microsoft.com/windows-server/remote/remote-desktop-services/clients/rdp-files) for a full list of supported properties and their default values. |
| 17 | + |
| 18 | +First, [download and import the Windows Virtual Desktop PowerShell module](https://docs.microsoft.com/powershell/windows-virtual-desktop/overview) to use in your PowerShell session if you haven't already. |
| 19 | + |
| 20 | +## Add or edit a single custom RDP property |
| 21 | + |
| 22 | +To add or edit a single custom RDP property, run the following PowerShell cmdlet: |
| 23 | + |
| 24 | +```powershell |
| 25 | +Set-RdsHostPool -TenantName <tenantname> -Name <hostpoolname> -CustomRdpProperty "<property>" |
| 26 | +``` |
| 27 | + |
| 28 | + |
| 29 | +## Add or edit multiple custom RDP properties |
| 30 | + |
| 31 | +To add or edit multiple custom RDP properties, run the following PowerShell cmdlets by providing the custom RDP properties as a semicolon-separated string: |
| 32 | + |
| 33 | +```powershell |
| 34 | +$properties="<property1>;<property2>;<property3>" |
| 35 | +Set-RdsHostPool -TenantName <tenantname> -Name <hostpoolname> -CustomRdpProperty $properties |
| 36 | +``` |
| 37 | + |
| 38 | + |
| 39 | +## Reset all custom RDP properties |
| 40 | + |
| 41 | +You can reset individual custom RDP properties to their default values by following the instructions in [Add or edit a single custom RDP property](#add-or-edit-a-single-custom-rdp-property), or you can reset all custom RDP properties for a host pool by running the following PowerShell cmdlet: |
| 42 | + |
| 43 | +```powershell |
| 44 | +Set-RdsHostPool -TenantName <tenantname> -Name <hostpoolname> -CustomRdpProperty "" |
| 45 | +``` |
| 46 | + |
0 commit comments