Enable RDP Through Registry

Enable RDP Through Registry – Step-by-Step Guide

Remote Desktop Protocol (RDP) allows users to remotely connect to Windows computers and servers. Sometimes, however, you cannot access the Windows Settings interface because the computer is locked down, managed remotely, or experiencing issues. In these situations, enable RDP through Registry is one of the fastest and most reliable solutions.

In this guide, you’ll learn how to enable Remote Desktop (RDP) through the Windows Registry, PowerShell, Command Prompt, and Group Policy. You’ll also discover how to open the required firewall ports, verify the configuration, and troubleshoot common Remote Desktop problems.

What Is the Windows Registry?

The Windows Registry is a centralized database that stores operating system settings, hardware configurations, installed software information, and user preferences.

Many Windows features—including Remote Desktop—can be enabled or disabled by modifying specific Registry values.

Warning: Always back up your Registry before making changes. Incorrect Registry modifications may cause Windows to become unstable.

Why Enable RDP Through Registry?

There are some situations where Registry editing is the best option.

  • Remote administration
  • Windows Settings unavailable
  • Headless servers
  • Server Core installations
  • Domain-managed computers
  • Automated deployment
  • Enterprise administration
  • Remote troubleshooting

System administrators commonly use Registry modifications together with PowerShell or Group Policy for mass deployment.

Registry Path for Remote Desktop

Navigate to:

HKEY_LOCAL_MACHINE
└── SYSTEM
└── CurrentControlSet
└── Control
└── Terminal Server

The important Registry value is:

Registry ValuePurpose
fDenyTSConnectionsEnables or disables Remote Desktop

Registry Values Explained

ValueMeaning
0Remote Desktop Enabled
1Remote Desktop Disabled

Changing the value from 1 to 0 enables Remote Desktop.

Method 1 – Enable RDP Using Registry Editor

Step 1

Press

Win + R

Type

regedit

Press Enter.

Step 2

Browse to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server

Step 3

Locate

fDenyTSConnections

Step 4

Double-click it.

Change

1

to

0

Click OK.

Step 5

Restart the computer or restart the Remote Desktop service.

Remote Desktop is now enabled in the Registry.

Method 2 – Enable RDP Using Command Prompt

Run Command Prompt as Administrator.

Execute:

</> cmd
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

You should receive:

The operation completed successfully.

Method 3 – Enable RDP Using PowerShell

Run PowerShell as Administrator.

</> PowerShell
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name "fDenyTSConnections" -Value 0

Verify:

</> PowerShell
Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server'

Expected output:

fDenyTSConnections : 0

Method 4 – Enable Registry Remotely

If Registry Remote Service is enabled:

</> cmd
reg add "\\ComputerName\HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

Replace:

ComputerName

with the remote PC hostname.

Open Windows Firewall for RDP

Enabling Registry alone is not enough.

Open TCP port 3389.

PowerShell:

</> PowerShell
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"

CMD:

</> cmd
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes

Restart Remote Desktop Service

Sometimes changes require restarting the service.

CMD

</> cmd
net stop TermService
net start TermService

PowerShell

</> PowerShell
Restart-Service TermService

Verify Remote Desktop Status

Check Registry:

</> cmd
reg query "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections

Expected:

0x0

Check Listening Port

</> cmd
netstat -ano | find "3389"

Expected:

LISTENING

Test Remote Desktop

From another PC:

mstsc

Enter:

  • Computer Name
  • IP Address
  • Server Name

If everything is configured correctly, the Remote Desktop login screen appears.

Enable Network Level Authentication (NLA)

For better security:

Navigate to:

System Properties
Remote

Enable:

Permit connections only from computers running Remote Desktop with Network Level Authentication.

Registry Keys Related to RDP

Registry KeyFunction
fDenyTSConnectionsEnable or Disable Remote Desktop
PortNumberDefault RDP Port
SecurityLayerSecurity Mode
UserAuthenticationNetwork Level Authentication

Change the Default RDP Port

Navigate to:

HKLM
System
CurrentControlSet
Control
Terminal Server
WinStations
RDP-Tcp

Modify:

PortNumber

Example:

33890

Restart Windows afterward.

Remember to update firewall rules if you change the port.

Troubleshooting

Registry Value Changes Back

Possible causes:

  • Group Policy
  • Domain Policy
  • Security Software
  • Endpoint Management Tools

Remote Desktop Still Disabled

Check:

  • Firewall
  • Remote Desktop Service
  • NLA
  • Network Connectivity
  • User Permissions

Port 3389 Closed

Run:

</> cmd
netstat -an

If no listener exists:

Restart:

TermService

Access Denied

Run Registry Editor as Administrator.

Verify account permissions.

Best Practices

  • Enable NLA
  • Use strong passwords
  • Restrict RDP users
  • Enable Windows Firewall
  • Use VPN for remote access
  • Keep Windows updated
  • Change the default RDP port if appropriate
  • Monitor login attempts
  • Enable account lockout policies
  • Disable RDP when not in use

Conclusion

Enabling RDP through Registry is a fast and effective way to activate Remote Desktop when the Windows Settings app is unavailable or when you’re managing systems remotely. By setting the fDenyTSConnections Registry value to 0, enabling the Remote Desktop firewall rules, and ensuring the TermService service is running, you can quickly establish remote access on Windows 10, Windows 11, and Windows Server.

For production environments, always combine Registry changes with security best practices such as enabling Network Level Authentication (NLA), using strong passwords, limiting Remote Desktop access to authorized users, and keeping your systems up to date. Proper configuration helps ensure secure and reliable remote administration.

Scroll to Top