On this pageWhat "enabled" actually means
Remote Desktop ships with every Windows Server edition, but it is not always on. A server installed from an ISO, a Server Core build, a hardening script or a domain policy can all leave it disabled. The fix takes a minute once you know that "enabled" really means three separate things, and that you need some other way into the machine to flip them.
What "enabled" actually means
A working Remote Desktop setup has three parts, and each can be off on its own:
| Part | Where it lives | What breaks when it is off |
|---|---|---|
| The setting | Registry value fDenyTSConnections under HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server (0 means allowed) |
The server refuses every session |
| The firewall rules | The built-in Remote Desktop rule group (TCP 3389 and UDP 3389) | Clients time out as if the server were off |
| The people | The Administrators group, plus anyone in Remote Desktop Users | Sign-in fails with an access message |
Network Level Authentication (NLA) is the fourth switch worth checking. With NLA on, the client proves who you are before Windows builds a session, so an attacker never reaches the sign-in screen. Keep it on unless an old client truly cannot connect.
Which versions this applies to
The steps below work the same way on every current release. Support dates matter more than the steps:
| Version | Extended support ends |
|---|---|
| Windows Server 2016 | January 12, 2027 |
| Windows Server 2019 | January 9, 2029 |
| Windows Server 2022 | October 14, 2031 |
| Windows Server 2025 | November 14, 2034 |
Windows Server 2012 and 2012 R2 left extended support in October 2023, and their paid Extended Security Updates ended in October 2026. The same commands still turn Remote Desktop on there, but a server that no longer gets security fixes should not face the internet over RDP at all. Plan the move to 2022 or 2025 instead.
Method 1: Server Manager or Settings
On a server with the Desktop Experience:
- Open Server Manager and select Local Server.
- Next to Remote Desktop, click the word Disabled. The Remote tab of System Properties opens.
- Choose Allow remote connections to this computer and leave the NLA box ticked.
- Click Select Users to add accounts that are not administrators, then OK.
The same tab opens directly with SystemPropertiesRemote.exe from the Run box. Recent releases also have a Remote Desktop page under Settings > System, with an on/off toggle that does the same job.
Turning Remote Desktop on from these screens also enables the matching firewall rules. Changing the registry value from a script does not, which is the most common reason a "fixed" server still times out.
Method 2: PowerShell
Open PowerShell as administrator and run the three changes together:
# Allow Remote Desktop connections
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name 'fDenyTSConnections' -Value 0
# Require Network Level Authentication
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name 'UserAuthentication' -Value 1
# Open the built-in firewall rules
Enable-NetFirewallRule -DisplayGroup 'Remote Desktop'
The display group name is translated on non-English installs, so -DisplayGroup 'Remote Desktop' can fail on a French or German server. The internal rule names are the same everywhere:
Enable-NetFirewallRule -Name 'RemoteDesktop-UserMode-In-TCP', 'RemoteDesktop-UserMode-In-UDP'
Then confirm that the server is listening:
Get-ItemPropertyValue 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections
Get-Service TermService
Get-NetTCPConnection -LocalPort 3389 -State Listen
The first line should print 0, the service should be Running, and the last command should show a listener. No restart is needed.
Method 3: Command Prompt
Older scripts and recovery environments often have only cmd.exe. Two lines do the same work as the PowerShell block:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
The netsh group name has the same translation problem as above. On a localized server, use the PowerShell rule names instead.
Method 4: Server Core and sconfig
Server Core has no Server Manager on the box, but it has sconfig, a text menu that starts at sign-in on recent releases. Type 7 for Remote desktop, choose to enable it, then pick the option that allows only clients with Network Level Authentication. sconfig sets the registry value and the firewall rules in one go. Type 15 to drop to PowerShell when you are done.
Method 5: Group Policy for many servers
In a domain, set it once in a Group Policy Object linked to the servers' organizational unit:
- Under Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections, set Allow users to connect remotely by using Remote Desktop Services to Enabled.
- In the neighboring Security folder, switch Require user authentication for remote connections by using Network Level Authentication to Enabled.
- Under Windows Settings > Security Settings > Windows Defender Firewall with Advanced Security, add the predefined Remote Desktop inbound rules.
Policy wins over local settings. If Remote Desktop keeps switching itself off after a reboot or a gpupdate, a policy set to Disabled is the cause. Run gpresult /h C:\gp.html and search the report for the Remote Desktop setting to see which GPO applied it.
Let the right people in
Members of the local Administrators group can connect as soon as Remote Desktop is on. Give everyone else a standard account and add it to the Remote Desktop Users group, rather than handing out admin rights:
New-LocalUser -Name 'alice' -Password (Read-Host -AsSecureString 'Password')
Add-LocalGroupMember -Group 'Remote Desktop Users' -Member 'alice'
Watch the session count too. Without the Remote Desktop Session Host role, Windows Server allows two simultaneous sessions for administration. Anything more, or any use by staff who are not administering the server, needs the RDS role and an RDS client access license for each user or device. Windows allows a 120-day grace period, then refuses sessions until a license server issues those licenses. Our guide to RDP, RDS and VDI covers when that step makes sense.
When Remote Desktop is off and you are not in the room
You cannot enable RDP over RDP, so you need another door. On a physical server that is the local console or an out-of-band card. On a cloud server it is the provider's browser console. On CloudSat, that is Console access (VNC) in the server's Access tab, described in Regain access with the recovery tools. Sign in there, run the PowerShell block above, and check that the cloud firewall in front of the server also allows TCP 3389.
Finally, test from your own machine before you close the console:
Test-NetConnection -ComputerName 203.0.113.10 -Port 3389
TcpTestSucceeded : True means the network path is open, and any remaining problem is an account or a certificate. If the port answers but the client shows a generic failure, see fixing "An internal error has occurred". Once you are in, consider moving RDP off port 3389 and limiting the firewall rule to your own address.
FAQ
Do I need RDS licenses just to manage my own server?
No. Two simultaneous administrative sessions are included with Windows Server. Licenses come into play when you install the Remote Desktop Session Host role so more people can work on the server at once.
Can Windows 10 or 11 Home accept Remote Desktop connections?
No. Home works only as a client that connects out to other computers; accepting incoming Remote Desktop sessions takes Pro, Enterprise, Education or a Windows Server edition.
Should I turn NLA off when a client cannot connect?
Only briefly, and only to diagnose. Clients from the last decade all support NLA. A refusal usually points to an account problem, a clock that is far off, or a CredSSP update missing on one side, and those are better fixed than worked around.
Does enabling Remote Desktop need a restart?
No. The listener starts as soon as fDenyTSConnections is set to 0. A restart is only required after changes such as a new listening port made in Registry Editor.
Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.




