Windows ServersUpdated November 26, 2026ยท2 min read

Remote Desktop Keeps Disconnecting? How to Fix It

When Remote Desktop keeps disconnecting you from a Windows server, three causes come up again and again: a session time limit, a flood of brute-force login attempts, or the server restarting. Each one can be checked.

Check the session time limits

Windows is able to close idle or long-running sessions by itself. Start the Group Policy editor (gpedit.msc) and open:

Computer Configuration โ†’ Administrative Templates โ†’ Windows Components โ†’ Remote Desktop Services โ†’ Remote Desktop Session Host โ†’ Session Time Limits

Switch any limit you don't want to Not Configured or Disabled, then sign out and reconnect.

Stop brute-force login attempts

Password-guessing bots hit Remote Desktop on every Windows server that's reachable online, causing dropped sessions and lockouts. Our free Orbit RDP Guard app limits access to IP addresses you choose, and the Windows Server security guide covers the rest of the hardening.

Check whether the server restarted

A reboot of the server ends your session too. Why does my Windows server keep restarting? explains update restarts and how to find out what triggered one.

Read the Remote Desktop session log

Run this PowerShell command to list the sign-ins, disconnects and reconnects of the past seven days:

Get-WinEvent -FilterHashtable @{LogName='Microsoft-Windows-TerminalServices-LocalSessionManager/Operational'; ID=21,22,23,24,25,39,40; StartTime=(Get-Date).AddDays(-7)} | Format-List TimeCreated,Id,Message

Matching the disconnect times against the log usually reveals the cause.

Remote Desktop keeps disconnecting after all that?

No explanation for the drops? A ticket with the server's IP and when they happened lets us look. We can move your VPS to a different host node when the cause is on our end.

Was this article helpful?

Written by Julius ยท Product Manager