RDP error: how to tell which one you have and fix it
"RDP error" covers several different Remote Desktop failures, so the exact message decides the fix. For "can't connect to the remote computer", check that the RDP listener is running and port 3389 is reachable. CredSSP and licensing errors have separate fixes below.
On this page
What it means
Remote Desktop (RDP) is one feature, but Microsoft documents several quite different failures under it. The wording on your screen tells you which one you have, and the fixes do not overlap.
Match your message to one of these three:
- "Remote Desktop can't connect to the remote computer" or "This computer can't connect to the remote computer": a listener or network problem. Use the first group of fixes. - "An authentication error has occurred. The function requested is not supported", often followed by "This could be due to CredSSP encryption oracle remediation": client and server disagree on a security policy. Use the CredSSP fixes. - "The remote session was disconnected because there are no Remote Desktop License Servers available": a licensing problem on the session host. Use the licensing fixes.
Symptoms and causes
You are likely dealing with this problem if:
- "Remote Desktop can't connect to the remote computer for one of these reasons: remote access to the server is not enabled, the remote computer is turned off, the remote computer is not available on the network"
- "An authentication error has occurred. The function requested is not supported" (newer builds add "This could be due to CredSSP encryption oracle remediation")
- "The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license"
- Event ID 6041 from LSA (LsaSrv) in the System log: a CredSSP authentication failed to negotiate a common protocol version
The usual causes, most common first:
- RDP listener not working
- The RDP-TCP listener on the target is not in the Listen state, so nothing answers on the port.
- Network path blocked
- Port 3389 is blocked by Windows Firewall, an Azure network security group or another network device. The RDP port may also have been changed, or the host name does not resolve in DNS.
- Remote Desktop switched off
- Remote access is not enabled on the target, or the registry value fDenyTSConnections is 1, set directly or by a Group Policy. The services TermService or UmRdpService may also be stopped.
- Port conflict or bad certificate
- Another process holds port 3389, or the self-signed RDP certificate is corrupt.
- CredSSP patch mismatch
- A patched client is connecting to an unpatched server, or an unpatched client is connecting to a server set to Force updated clients. Third-party RDP software may lack support for the latest CredSSP.
- Licensing not set up
- The grace period has ended and no working license server is configured, the license server is not activated or has no CALs, the licensing mode is wrong, ports are blocked, or CAL and session host versions are incompatible.
How to fix it
Work through these in order. They start with the quickest, safest checks and move to deeper repairs; stop as soon as the problem is gone.
1.Check the listener and the network path
For "can't connect" this separates a dead listener from a network problem before you change anything.
- Confirm the target machine is on and responsive. If you cannot sign in at all, use its console (for example iLO or the Hyper-V console).
- On the target, open an elevated Command Prompt and list the listeners. You want to see
rdp-tcpwith ID65536in theListenstate.qwinsta - From another computer, open elevated PowerShell and test the port.
TcpTestSucceededshould beTrue.Test-NetConnection -ComputerName <host> -Port 3389 -InformationLevel Detailed - Try connecting by IP address instead of the name. If the IP works and the name does not, the cause is DNS name resolution.
2.Enable the Remote Desktop firewall rules and check the port
If the port test fails, the Remote Desktop rules are often disabled or the service listens on a different port.
- Open
wf.mscand check the inbound Remote Desktop rules are enabled. Or enable the whole group from elevated PowerShell:Get-NetFirewallRule -DisplayGroup "Remote Desktop" | Set-NetFirewallRule -Enabled True - For an Azure VM, also check that the network security group allows the RDP port.
- Read the configured port without editing anything. The default is 3389. If the value differs, connect using
host:port.(Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\Winstations\RDP-Tcp").PortNumber
3.Check the registry, Group Policy and services
A registry value or policy can turn RDP off even when the firewall is fine, and policies override local settings.
Before you start: Create a restore point before editing the registry. If a Group Policy sets these values, change the policy, not just the registry, or the value will revert. Restarting Remote Desktop Services disconnects every current RDP session, so do it from the console or in a maintenance window, not from inside an RDP session.
- In Registry Editor, check that
fDenyTSConnectionsis0underHKLM\SYSTEM\CurrentControlSet\Control\Terminal Server. If a policy applies, also checkHKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services. - Check that
fEnableWinStationis1underHKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Winstations\RDP-Tcp. - Open
services.mscand make sure Remote Desktop Services (TermService) and its user-mode port redirector service (UmRdpService) are running. Start them if not. RestartingTermServiceends all active RDP sessions. - Check
HKLM\SYSTEM\Setup: the valuesSystemSetupInProgressandOOBEInProgressmust both be0.
4.Look for a port conflict and reset the RDP certificate
Another program on port 3389 or a corrupt self-signed certificate stops the listener from working.
Before you start: Deleting a certificate cannot be undone from the console. Delete only the self-signed one in the Remote Desktop store, and make sure you can reach the machine locally if the connection does not return. Restarting TermService disconnects all current RDP sessions, so do it from the console or in a maintenance window.
- Find the process ID of Remote Desktop Services, then the process using port 3389. The two PIDs must match.
tasklist /svc | findstr TermService netstat -anob | findstr 3389 - If another process owns the port, stop that process and restart
TermService. - Open the Certificates console for the Computer account, go to the Remote Desktop store and delete the self-signed certificate. Restart
TermServiceand confirm a new certificate is created. - If Remote Desktop Services roles you do not need are installed (for example Connection Broker), remove them in Server Manager. If you do need Connection Broker, check that
TSSDisis running.
5.Rule out third-party antivirus
Security software can interfere with the listener. This is only a test.
Before you start: Turn the antivirus back on straight after the test. If it was the cause, ask the vendor for a proper exclusion or fix instead of leaving it off.
- Temporarily disable the third-party antivirus on the target and try to connect again.
- Re-enable the antivirus immediately, whatever the result.
6.Fix CredSSP: update both sides and align the policy
The "encryption oracle remediation" message means the two machines are on different CredSSP patch levels or policies (CVE-2018-0886).
- Install the current Windows updates on both the client and the server, then restart both. This is the real fix.
- Make sure the policy matches. In Group Policy go to Computer Configuration, Administrative Templates, System, Credentials Delegation, Encryption Oracle Remediation. The choices are Force Updated Clients, Mitigated and Vulnerable.
- Do not set Force Updated Clients everywhere until every Windows and third-party RDP client you use supports the latest CredSSP.
7.CredSSP temporary workaround: Vulnerable on the client
Use this only if you must connect right now to a server that cannot be patched yet.
Before you start: This leaves the client exposed to the CVE the update fixes. Create a restore point first, and set the value back as soon as the server is patched.
- On the patched client, open Registry Editor and go to
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters. - Set the DWORD
AllowEncryptionOracleto2(Vulnerable) and restart. For reference:0is Force updated clients,1is Mitigated. - Patch the server, then change the value back to
1(or0) and restart again.
8.Fix "no Remote Desktop License Servers available"
The session host needs a reachable, activated license server with matching CALs and the right mode.
- On the session host, signed in as a domain admin, open the RD Licensing Diagnoser and read what it reports.
- In RD Licensing Manager, confirm the license server is activated (green check mark) and has CALs.
- With a Connection Broker: in Server Manager, open Remote Desktop Services, Overview, Edit Deployment Properties, RD Licensing. Choose Per User or Per Device and add the license server.
- Without a Connection Broker: in
gpedit.mscgo to Computer Configuration, Administrative Templates, Windows Components, Remote Desktop Services, Remote Desktop Session Host, Licensing. Set Use the specified Remote Desktop license servers and Set the Remote Desktop licensing mode. - Open the required ports between the session host and the license server (Microsoft lists them in its "Ports that are used by Remote Desktop Services" page).
- Check the Access this computer from the network right (Local Policies, User Rights Assignment): Authenticated Users, Domain Computers or the session host's computer account should have it if Everyone does not.
- Check versions. A session host can use CALs of its own version or newer, never older. Check Microsoft's compatibility table on the licensing page for the license server side. Workgroup servers need Per Device CALs.
9.Clear corrupt licensing certificate values
For "Access was denied because of a security error" or X.224 messages, corrupt certificate values under the RCM key are a documented cause.
Before you start: Back up the registry and export the RCM key before deleting anything. A wrong delete can break Remote Desktop licensing on that host.
- Export
HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\RCMto a.regfile as a backup. - Delete the values
Certificate,X509 Certificate,X509 Certificate IDandX509 Certificate2under that key. - Restart the server and reactivate the license server. Repeat on every Remote Desktop Session Host.
Check that it worked
- Running
qwinstaon the target showsrdp-tcpin theListenstate, andTest-NetConnectionreportsTcpTestSucceeded : True. - Remote Desktop Connection opens a session without the authentication or licensing message.
- Any temporary change (antivirus off, CredSSP set to Vulnerable) has been reverted.
If it still fails
- Read the System and Remote Desktop logs on both machines and note the exact message and any event ID.
- Microsoft has separate articles for the "internal error has occurred", "Remote Desktop Service is currently busy" and authenticate-twice cases. These were not reviewed here, so search Microsoft Learn for the exact text.
- For Microsoft Support, the TSS tool (aka.ms/getTSS) collects data: run
TSS.ps1 -scenario Net_RDSclion the client and-scenario Net_RDSsrvon the servers. - If a wireless laptop on 802.1x drops off the network when connecting, Microsoft suggests changing the network authentication from User authentication to User or computer or Computer authentication.
Questions
Is it safe to leave AllowEncryptionOracle at 2?
No. Value 2 (Vulnerable) leaves the client open to the CVE-2018-0886 weakness. Use it only until the server is patched.
Why can't a Windows Server 2019 session host use my 2016 CALs?
A session host can use CALs of its own version or newer, not older. A 2016 CAL cannot serve a 2019 host.
Sources
- Remote Desktop Can't Connect to the Remote Computer - Windows ServerOfficial · Microsoft Learn
- CredSSP updates for CVE-2018-0886Official · Microsoft Support
- Cannot connect to RDS because no RD Licensing servers are availableOfficial · Microsoft Learn
- Guidance for troubleshooting RDS session connectivityOfficial · Microsoft Learn