Registry data refreshed from vendors: Last vendor change detected: 5 Dec 2026Next refresh: 1st of the monthApp v1.4.0 (5 Dec 2026): Cleanup or tattoo: see what stays behind after a GPO is removed. Release notes
Microsoft · Windows

Allow or deny Remote Desktop connections (fDenyTSConnections)

The on/off switch for incoming Remote Desktop connections. 0 allows connections, 1 denies them.

Verified · 2026-12-05 Per machine (HKLM) Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Where it lives

  • HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server
  • HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

Values

NameTypeData and meaningDefault
fDenyTSConnectionsREG_DWORD0 Remote Desktop connections allowed
1 Remote Desktop connections denied
1 on a fresh install (connections denied)

In plain English

The value under Control\Terminal Server is the local setting that the System Properties > Remote tab and Settings > Remote Desktop write. The same value under SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services is written by Group Policy and wins over the local value.

Windows 11 Home can't accept incoming Remote Desktop connections whatever this value says.

RestartNo reboot. New connections follow the new value. Also open the 'Remote Desktop' firewall rule group.
Group PolicyComputer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections > Allow users to connect remotely by using Remote Desktop Services
RiskExposing RDP to the internet is a top ransomware entry point. Allow it only from management networks or through a gateway.

How to configure it

Enable RDP on Server Core or a remote server

PowerShell

Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections -Value 0
Enable-NetFirewallRule -DisplayGroup 'Remote Desktop'

Official sources

Verified Confirmed automatically on the cited source.

Remote Desktop and RDS