Ouvrir dans l'explorateur

Enable RDP Shortpath for managed network using NAT traversal

Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Azure Virtual Desktop › Shortpath RDP EN : Computer Configuration › Policies › Administrative Templates › Azure Virtual Desktop › RDP Shortpath
Pris en charge sur
Azure Virtual Desktop
Fichier ADMX
terminalserver-avd.admx
Nom interne
terminalserver-avd/AVD_SERVER_UDP_SHORTPATH_DIRECT

Explication

This policy lets you control RDP Shortpath for managed networks. It's a direct UDP connection between a client device and session host using a private connection, such as ExpressRoute private peering or a virtual private network (VPN). When the RDP Shortpath listener isn't enabled on session hosts and an inbound port isn't allowed, ICE/STUN is used to discover available IP addresses and a dynamic port that can be used for a connection.

If you enable or do not configure the policy this policy setting, Remote Desktop Protocol will consider managed networks paths to establish connection with the session host.

If you disable this policy, Remote Desktop Protocol will NOT consider managed networks path to establish connection with the session host.

Registre

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Nom de la valeur
directUDP
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 2

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : terminalserver-avd/AVD_SERVER_UDP_SHORTPATH_DIRECT
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'directUDP' -Value 1 -Type DWord

Désactiver

# Désactiver : terminalserver-avd/AVD_SERVER_UDP_SHORTPATH_DIRECT
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'directUDP' -Value 2 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : terminalserver-avd/AVD_SERVER_UDP_SHORTPATH_DIRECT
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'directUDP' -ErrorAction SilentlyContinue

Application

Azure Virtual Desktop (Microsoft) — modèles de novembre 2026

Modèles officiels téléchargés le 12 novembre 2026.