Remote Desktop Does Not Connect: Check and Fix It From the Console

If Remote Desktop stopped working but the server is running, the reason is usually inside Windows: the Remote Desktop service stopped, Remote Desktop was switched off, or the firewall blocks it. You can check and fix all of this from the server's console, which works without Remote Desktop.

First try the simple things: wait a few minutes after a restart, check the address and the password, and see Remote Desktop Says the Account Is Locked if Windows answers that the account is locked.


1. Sign In Through the Console

Open the console of your server from the Client Area. For a VPS, open Information → Console (see Console Access). For a dedicated server, use noVNC Remote Management or IPMI Remote Management. On the Windows sign-in screen, send Ctrl+Alt+Del with the button of the console toolbar and sign in as Administrator with your password.

Open PowerShell as administrator: right-click Start and choose Terminal (Admin) or Windows PowerShell (Admin).

2. Check Remote Desktop

Run these four commands one after another:

Get-Service TermService
(Get-ItemProperty "HKLM:\System\CurrentControlSet\Control\Terminal Server").fDenyTSConnections
Get-NetFirewallRule -DisplayGroup "Remote Desktop" | Format-Table DisplayName, Enabled
Get-NetFirewallRule -DisplayGroup "Remote Desktop" | Get-NetFirewallAddressFilter | Format-Table RemoteAddress

On a server where Remote Desktop works, the answers look like this:

PowerShell: the Remote Desktop service, setting and firewall rules on a working server

  1. Running: the Remote Desktop service runs. Stopped is a problem.
  2. 0: Remote Desktop is allowed. 1 means it is switched off.
  3. True: the firewall rules for Remote Desktop are switched on. False blocks it.
  4. Any: every address may connect. If you see addresses here, only those may connect; check that your current address is one of them (myip.com).

3. Fix It

These three commands switch Remote Desktop on, switch its firewall rules on and start its service. They are safe to run even if part of it already works:

Set-ItemProperty "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name fDenyTSConnections -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
Start-Service TermService

PowerShell: the three repair commands and the running service

If your address has changed and is not in the list (point 4), allow every address again, connect, and then set your new addresses as in Allow Remote Desktop Only From Your IP Addresses:

Set-NetFirewallRule -DisplayGroup "Remote Desktop" -RemoteAddress Any

Try to connect again. If it still does not work, restart the server from the console (Start → power → Restart), see How to Restart Windows Server.

Did you change the Remote Desktop port?

Then connect with the port after the address, for example 203.0.113.91:53389, and check your own firewall rule for that port. See Change the Remote Desktop Port.


Related Guides

View all Windows guides

Was this answer helpful? 0 Users Found This Useful (0 Votes)