Remote Desktop RDP logs out user after disconnect - only since latest Updates

Ma 6 Reputation points
2020-10-19T11:33:02.26+00:00

I log in to a few different servers using RDP (for a million years) and it's just perfect and quick - on my local network. Client is Win 10. Servers are Win2008 R2 and 2019. I just simply login to the Administrator account and run a bunch of desktop apps that I just want to continue to run. i.e. VMWare Workstation. I know, I know. But that's the simplest way I like to run. From the latest Win updates, I 'think' the fix for the Trickbot malware has screwed this simple setup: https://www.microsoft.com/security/blog/2020/10/12/trickbot-disrupted/ It look me a good number of hours to even diagnose what was going on - as these are critical VMs running and they would just quit (yet the underlying server hadn't rebooted). So, after all the work of diagnosing the problem - it does seem that only now are the servers forcing the logoff of the session when the session is closed. I've searched alot and not seen many people complaining about this (yet). There are lots of older posts. I'm managed to fix the problem for the 2008 R2 server. The fix was simple and hasn't failed yet: https://community.spiceworks.com/topic/2122517-log-out-rdp-disconnected-users Yes, I have resorted to TeamViewer - but I just prefer RDP and it's the quickest and nicest. All the suggested fixes for 2012 and above have not worked for 2019. Reg key, GPO, local security settings and I just can't get it back to how it was (forever)... Any hints would be appreciated. I tried all the methods via a user account - but same problem.


**Edit. Hopefully not speaking too soon. I think I've found the answer. All the instructions talk about adjusting the GPO 2012 and above. But they all only mention Computer Configuration path.

Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remtoe Desktop Session Host\Session Time limits>

Set to Unlimited.

But, I thought I should maybe also set the User Configuration as well. Afterall, I do login as an Administrator. So I adjusted those keys in the same way. Anyway, so far, it seems to be holding OK.

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,305 questions
0 comments No comments
{count} votes

7 answers

Sort by: Newest
  1. Christian Erdtmann 1 Reputation point
    2022-03-10T18:57:44.463+00:00

    Hey can you explain how you do it, that you stay logged in after closing the remote desktop connection.
    I run a software and i got alltimes logged of if i close the rdp connection but the software need to navigate in the windows explorer, so it gets alltimes a error by logging off.

    You know a way to stay lgged in?

    0 comments No comments

  2. Dimitar Panayotov 1 Reputation point
    2022-01-02T15:38:39.27+00:00

    I landed on this thread with high hopes but alas, it didn't help me and OP didn't make it clear with a step-by-step guide how exactly did they fix their problem.

    I've tried the Group Policy thing including disabling the timeouts, enabling them but setting them to Never, and various regedit tricks. Absolutely nothing helped.

    Fact is, I connect to a Win10 machine (hosted on AWS EC2) from my Mac (by using Microsoft's official app), click Close and my server process no longer is listening on the process, meaning that it was killed. Or maybe it's a firewall problem but I doubt it.

    So can we get a real solution here, for historical reasons?


  3. Mark Hacker 1 Reputation point
    2020-10-30T09:08:27.893+00:00

    It was my mistake. It was not an MS error. A lot of testing with different OSs led me to a 3rd party app that was updated at the same time. It has a new feature that does this logout automatically - but it should not have been set be default. Thanks for the suggestions.


  4. Ma 6 Reputation points
    2020-10-23T13:01:49.737+00:00

    Problem has returned on the 2008 R2 server (and also the 2019 server). All week it was fine - login many times with RDP and it was fine - the session kept running. Rebooted the server today, and it's back to the old behaviour logging off the user. I even applied the same GPO as suggested for 2019 server to the 2008 R2 server. No good. I'm back to having to rely on TeamViewer - which is not as good as RDP.

    Anyone with any thoughts on why or how to fix this?


  5. Ma 6 Reputation points
    2020-10-20T10:08:11.607+00:00

    Oh - right - of course. Well, I thought about that - but, in the end I really should get all the updates. I can only remember one other time (a few years back) that an MS update completely broke my server and I did indeed then remove that update (and waited for the eventual MS fix in later releases). But this new change must affect many people. I can't believe no one else is seeing (or complaining) about it. I know it's not the best security in the world to do what I'm doing, but it works. Until I found those posts, I was relying on TeamViewer (or worse VNC) to get back up and running. So, the thought (if I'm right) that Microsoft put this 'fix' into place for RDP to increase security, actually reduces security as 'we' try to find ways around it.

    It really did take me a few hours to work out what was going on. Checking everything other than an MS update that breaks RDP (in my eyes as to how it always used to work forever).

    1 person found this answer helpful.
    0 comments No comments