I have a Windows 7 PC that I RDP into when I work remotely. I'm having an issue where this machine logs me out completely whenever I end the RDP session. I am not initiating a logoff. This happens when I click the "X" in the remote desktop bar, or if I lose the network connection for some reason. The next time I RDP back into it, or log in from the console, I get a completely new session. This is particularly annoying when I have a shaky internet connection and I have to run something that takes a few hours to complete.

I have checked the Event Viewer to see if there's anything that looks unusual, but I might not know what I'm looking for, even if I see it. The only event that I see that is close to the time of logoff is an actual Logoff event in the Security sub-section of the Windows Logs section:

An account was logged off.

    Security ID:        domain\username
    Account Name:       username
    Account Domain:     domain
    Logon ID:       0x1377093d6

Logon Type:         3

This event is generated when a logon session is destroyed. It may be positively correlated with a logon event using the Logon ID value. Logon IDs are only unique between reboots on the same computer.

I checked the Group Policy (under Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits) to see if there was a timeout set for inactive sessions, and I experimented with changing the values of these settings, but nothing seems to affect it.

  • This seems very unusual, but interesting. Does the logoff happen immediately after you hit the "X" in the remote desktop bar? If not, how long (seconds, minutes) does it take for the session to timeout and logoff? Jul 19 '17 at 3:20
  • 1
    It doesn't seem to be any particular amount of time. Sometimes I am able to immediately resume my sessions, other times, I can connect about 10 minutes later. Other times, the logoff is immediate. This is part of what makes it so frustrating. It's not consistent. I originally suspected that there might be something running in the background that was killing the session at a certain interval, but that doesn't seem to be the case. Yesterday, when I was working, I got disconnected 4 times, and each time, when I immediately reconnected, I got a new logon. Jul 19 '17 at 15:06
  • OK. That is good information. The inconsistency will make this very difficult for you, but it can be narrowed down. Is it possible to be in the same room with the computer that you will RDP into? For troubleshooting purposes, it can be helpful to have both local and remote access at the same time; you can watch the screen and see how the other machine responds your actions. Jul 19 '17 at 15:23
  • Yes. I RDP in from my notebook, and I'm at my console 3 days per week. Jul 19 '17 at 15:27
  • It may be worthwhile to note the various timeout lengths, to see if there is a pattern. While you are logged in via RDP, the local screen should be locked, and should have a little message that says "Logged in remotely from..." When you are logged off, that little message should disappear (does it disappear when you are auto-disconnected?) Jul 22 '17 at 2:09

Are you connecting to the "Admin" session? This implies a "console" connection which will be broken when disconnected.

  • Thanks for responding, but the answer is "no". I am connecting with my regular user. Sep 27 '18 at 20:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.