Microsoft · Windows
Allow or deny Remote Desktop connections (fDenyTSConnections)
The on/off switch for incoming Remote Desktop connections. 0 allows connections, 1 denies them.
Where it lives
HKLM\SYSTEM\CurrentControlSet\Control\Terminal ServerHKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Values
| Name | Type | Data and meaning | Default |
|---|---|---|---|
fDenyTSConnections | REG_DWORD | 0 Remote Desktop connections allowed1 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.
| Restart | No reboot. New connections follow the new value. Also open the 'Remote Desktop' firewall rule group. |
|---|---|
| Group Policy | Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections > Allow users to connect remotely by using Remote Desktop Services |
| Risk | Exposing 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
- Prepare a Windows VHD or VHDX to upload to Azure (remote desktop registry settings) · checked 2026-12-05
Verified Confirmed automatically on the cited source.