Skip to content

Commit a01b47a

Browse files
Merge pull request #78660 from v-hevem/customize-rdp-properties2
Customize rdp properties
2 parents 8e07160 + 07a0696 commit a01b47a

File tree

5 files changed

+48
-0
lines changed

5 files changed

+48
-0
lines changed

articles/virtual-desktop/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
href: configure-vm-gpu.md
4343
- name: Automatically scale session hosts
4444
href: set-up-scaling-script.md
45+
- name: Customize RDP Properties
46+
href: customize-rdp-properties.md
4547
- name: Concepts
4648
items:
4749
- name: Windows Virtual Desktop environment
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
![A screenshot of PowerShell cmdlet Get-RDSRemoteApp with Name and FriendlyName highlighted.](media/singlecustomrdpproperty.png)
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+
![A screenshot of PowerShell cmdlet Get-RDSRemoteApp with Name and FriendlyName highlighted.](media/multiplecustomrdpproperty.png)
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+
![A screenshot of PowerShell cmdlet Get-RDSRemoteApp with Name and FriendlyName highlighted.](media/resetcustomrdpproperty.png)
26.5 KB
Loading
21.1 KB
Loading
22.9 KB
Loading

0 commit comments

Comments
 (0)