You've successfully subscribed to Nuvotex Blog
Great! Next, complete checkout for full access to Nuvotex Blog
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info is updated.
Billing info update failed.

Windows 11 22H2 - stuck RDP session establishment when using UDP transport

Windows 11 22H2 currently has an issue when connecting using the Remote Desktop gateway or Remote Desktop Connection Broker. This article gives some information and possible workarounds.

Daniel Nachtrub
Daniel Nachtrub

Just a quick post. If you've recently upgraded to Windows 11 22H2 you might have noticed that RDP using UDP transport (mostly used in optimized scenarios like RDS Farms) cannot connect anymore and is stuck at Loading the virtual machine.

stuck on connection establishment

According to Microsoft the problem occurs only when establishing a connection using the Remote Desktop gateway or Remote Desktop Connection Broker.

Fix 1 - Group policy

As a workaround, Microsoft suggests disabling UDP using the Group Policy editor. For this you need:

  • Open the Group Policy Management Console or the Local Group Policy Editor.
  • Go to "Computer Configuration" -> "Administrative Templates" -> "Windows Components" -> "Remote Desktop Services" -> "Remote Desktop Connection Client" .
  • Find the policy "Turn off UDP On Client" and set its value to "Enabled" .
  • Apply the changes

Fix 2 - Registry setting

If you want to fix only on specifically affected devices (using item level targeting in GPO for example), you can use the following registry setting to apply the fix.

Key: HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client
Property: fClientDisableUDP
Type: DWORD (32-bit)
Value: 1

Performance impactAs RDP is using UDP to improve performance quite nicely, you should only apply the workaround until there's a fix from Microsoft.
WindowsNetwork

Daniel Nachtrub

Kind of likes computers. Linux foundation certified: LFCS / CKA / CKAD / CKS. Microsoft certified: Cybersecurity Architect Expert & Azure Solutions Architect Expert.