Open in the explorer

Turn Off UDP On Client

Désactiver UDP sur le client

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Connection Client FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Client Connexion Bureau à distance
Supported on
At least Windows 8 or Windows RT FR: Au minimum Windows 8 ou Windows RT
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_CLIENT_TURN_OFF_UDP

Explanation

This policy setting specifies whether the UDP protocol will be used to access servers via Remote Desktop Protocol.

If you enable this policy setting, Remote Desktop Protocol traffic will only use the TCP protocol.

If you disable or do not configure this policy setting, Remote Desktop Protocol traffic will attempt to use both TCP and UDP protocols.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie si le protocole UDP est utilisé pour accéder aux serveurs via le protocole RDP (Remote Desktop Protocol).

Si vous activez ce paramètre de stratégie, la trafic RDP (Remote Desktop Protocol) n’utilise que le protocole TCP.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, le trafic RDP (Remote Desktop Protocol) essaie d’utiliser les protocoles TCP et UDP.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client
Value name
fClientDisableUDP
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

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_CLIENT_TURN_OFF_UDP
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'fClientDisableUDP' -Value 1 -Type DWord

Disable

# Disable: TerminalServer/TS_CLIENT_TURN_OFF_UDP
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'fClientDisableUDP' -Value 0 -Type DWord

Revert to "Not configured"

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

Availability