Open in the explorer

Select RDP transport protocols

Sélectionner des protocoles de transfert RDP

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Connections FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Hôte de la session Bureau à distance › Connexions
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_SELECT_TRANSPORT

Explanation

This policy setting allows you to specify which protocols can be used for Remote Desktop Protocol (RDP) access to this server.

If you enable this policy setting, you must specify if you would like RDP to use UDP.

You can select one of the following options: "Use either UDP or TCP (default)" or "Use only TCP"

If you select "Use either UDP or TCP" and the UDP connection is successful, most of the RDP traffic will use UDP.

If the UDP connection is not successful or if you select "Use only TCP," all of the RDP traffic will use TCP.

If you disable or do not configure this policy setting, RDP will choose the optimal protocols for delivering the best user experience.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de spécifier les protocoles qui peuvent être utilisés pour l’accès protocole RDP (Remote Desktop Protocol) (RDP) à ce serveur.

Si vous activez ce paramètre de stratégie, vous devez spécifier si vous souhaitez que RDP utilise UDP.

Vous pouvez sélectionner l’une des options suivantes : « Utiliser UDP ou TCP (par défaut) » ou « Utiliser uniquement TCP »

Si vous sélectionnez « Utiliser UDP ou TCP » et que la connexion UDP réussit, la plupart du trafic RDP utilise UDP.

Si la connexion UDP échoue ou si vous sélectionnez « Utiliser uniquement TCP », tout le trafic RDP utilise TCP.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, RDP choisit les protocoles optimaux pour offrir la meilleure expérience utilisateur.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: TerminalServer/TS_SELECT_TRANSPORT
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Select Transport Type
# Possible options:
#   Use either UDP or TCP = 2
#   Use only TCP = 1
Set-ItemProperty -Path $k -Name 'SelectTransport' -Value 2 -Type DWord

Disable

# Disable: TerminalServer/TS_SELECT_TRANSPORT
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": TerminalServer/TS_SELECT_TRANSPORT
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'SelectTransport' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Select Transport TypeSélectionner le type de transportTS_SELECT_TRANSPORT_TYPEDrop-down listenumSelectTransportREG_DWORD
Default choice (UI): #0
LabelValue
Use either UDP or TCPREG_DWORD = 2
Use only TCPREG_DWORD = 1

Availability