On this pageRead the pattern first
"An internal error has occurred" is Remote Desktop Connection's catch-all message, and it says more than it seems. If the client could not reach the server at all, you would see "Remote Desktop can't connect to the remote computer" instead. This error usually means the TCP connection opened and then something failed during the security handshake or the session setup. That narrows the search to a short list, and you can work through it from the cheapest check to the most invasive.
Read the pattern first
Who is affected tells you where to look:
| What you see | Likely cause | Start at |
|---|---|---|
| One client fails, others connect | Cached settings, UDP, a VPN on that client | Step 1 |
| Every client fails after updates or a hardening script | TLS protocols, cipher suites, security layer | Steps 5 and 7 |
| Every client fails after weeks of uptime or a crash | A stuck Remote Desktop service, a damaged certificate | Steps 4 to 6 |
| It fails only on hotel Wi-Fi or through a VPN | UDP or packet size on that network | Step 1 |
Step 1: Rule out the client
Try a different client before touching the server. Windows App, FreeRDP on Linux or Remote Desktop Connection on another PC will tell you in one attempt whether the problem follows the server or stays with your computer.
If only your computer fails, reset Remote Desktop Connection's saved state. The default connection settings live in a hidden Default.rdp file, and bitmap caches pile up over years:
Remove-Item "$env:USERPROFILE\Documents\Default.rdp" -Force -ErrorAction SilentlyContinue
Remove-Item "$env:LOCALAPPDATA\Microsoft\Terminal Server Client\Cache\*" -Force -ErrorAction SilentlyContinue
Next, take UDP out of the picture. RDP tries a UDP transport alongside TCP, and some networks mangle it. This policy value, set from PowerShell run as administrator, makes the client use TCP only:
$key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client'
New-Item -Path $key -Force | Out-Null
Set-ItemProperty -Path $key -Name fClientDisableUDP -Value 1 -Type DWord
# undo later with: Remove-ItemProperty -Path $key -Name fClientDisableUDP
Also disconnect any VPN or proxy for one test, and check that the client's clock is right. A clock that is far off breaks certificate and Kerberos checks in ways that surface as vague errors.
Step 2: Confirm the network path
From the client, check that the port answers:
Test-NetConnection -ComputerName 203.0.113.10 -Port 3389
TcpTestSucceeded : True confirms the path and moves the problem to the server. If it is False, you are looking at a firewall or a stopped listener, not an internal error, and enabling Remote Desktop covers the checks. Use your custom port number here if you moved RDP off 3389.
Step 3: Get onto the server another way
The remaining steps run on the server, so you need a door that does not depend on RDP: the physical console, an out-of-band card, PowerShell remoting from another machine on the same network, or your provider's browser console. On CloudSat that is Console access (VNC) under the server's Access tab (recovery tools). The console also shows whether Windows is busy installing updates, which explains a surprising number of these errors on its own.
Step 4: Restart Remote Desktop Services
A listener that has been up for weeks, or that survived a failed update, can accept TCP connections and then fail every handshake. Restart it:
Restart-Service -Name TermService -Force
-Force is required because another service depends on it. If the service hangs in Stopping, restart the whole server with Restart-Computer.
Step 5: Read the logs
Windows records why the handshake failed, usually in two places:
Get-WinEvent -LogName 'Microsoft-Windows-RemoteDesktopServices-RdpCoreTS/Operational' -MaxEvents 30 |
Format-Table TimeCreated, Id, Message -Wrap
Get-WinEvent -FilterHashtable @{LogName = 'System'; ProviderName = 'Schannel'} -MaxEvents 20 |
Format-Table TimeCreated, Id, Message -Wrap
The events worth recognizing:
| Event | Meaning | Go to |
|---|---|---|
| Schannel 36870 | Windows cannot use the private key of the TLS certificate | Step 6 |
| Schannel 36874 | The client and server share no cipher suite | Step 7 |
| Schannel 36888 with a protocol alert | The handshake was rejected, often by a disabled TLS version | Step 7 |
| RemoteConnectionManager 1057 | The server failed to create its self-signed certificate | Step 6 |
Step 6: Rebuild the Remote Desktop certificate
Unless you installed your own, the server uses a self-signed certificate that Windows creates when the service starts. If its key is damaged or unreadable, deleting it and restarting the service produces a fresh one:
# See what is there
Get-ChildItem 'Cert:\LocalMachine\Remote Desktop'
# Remove it and let Windows generate a new one
Get-ChildItem 'Cert:\LocalMachine\Remote Desktop' | Remove-Item
Restart-Service -Name TermService -Force
Clients will warn once about a new certificate, which is expected. If someone configured a custom certificate, check which one the listener is bound to, along with the security settings:
Get-CimInstance -Namespace root\cimv2\TerminalServices -ClassName Win32_TSGeneralSetting -Filter "TerminalName='RDP-Tcp'" |
Select-Object SSLCertificateSHA1Hash, SecurityLayer, UserAuthenticationRequired
Compare the thumbprint with the certificates in the computer's Personal store. An expired certificate or one whose private key was not exported with it produces exactly this error. If event 36870 keeps returning after a rebuild, security software has probably changed the permissions on C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys. Compare them with a healthy server before changing anything.
Step 7: Check the security layer and TLS hardening
SecurityLayer above should read 1 (negotiate) or 2 (TLS). A value of 0 selects the legacy RDP security layer, which does not work with Network Level Authentication. Group Policy can impose that value, so search the report from gpresult /h C:\gp.html for Require use of specific security layer for remote (RDP) connections, listed under Remote Desktop Session Host > Security.
Hardening scripts are the other usual suspect. Tools that switch off TLS versions or trim cipher suites sometimes remove what RDP needs. Check that TLS 1.2 is not disabled for the server side:
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server' -ErrorAction SilentlyContinue
No key, or Enabled set to 1, is fine. Enabled set to 0, or DisabledByDefault set to 1, turns TLS 1.2 off for every server role on the machine, Remote Desktop included. Re-enable it, or restore the hardening tool's previous profile, then restart.
Step 8: Finish the updates on both ends
A server that installed updates but never restarted runs a mix of old and new components, and handshakes fail in odd ways. Restart it. Keep the client patched too: when the CredSSP versions on the two sides disagree, Windows shows a different message, "An authentication error has occurred", which is a clue that the fix is an update rather than a setting.
FAQ
Is it safe to delete the Remote Desktop certificate?
Yes, for the self-signed one. Windows creates a new one when Remote Desktop Services starts, and the only side effect is a one-time trust warning on each client. Do not delete a certificate your organization issued unless you can reissue it.
Can I reinstall Remote Desktop Connection?
Not as a separate program: mstsc.exe is part of Windows. Trying Windows App or FreeRDP gives you a second, independent client to compare against, which is more useful anyway.
Why does a brand-new server show this error?
Usually because it is still finishing its first round of updates or a restart. Open the console, let it finish, and try again before you change any settings.
Should I disable Network Level Authentication to get in?
No. With NLA off, anyone who reaches the port gets a sign-in screen. Use the console to fix the certificate or TLS problem instead.
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.




