Turn Off UDP On Client
Désactiver UDP sur le client
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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