Windows 2019 sessions auto-disconnect

Gillan Polyanskiy 1 Reputation point
2021-04-08T05:14:36.327+00:00

Good day for all. I have Win 2019 Server. When I disconnect (clicking the X button and closing RDP session), after some of time, my session logs off, so all of applications are closed. How can a make an unlimited lifetime for session? I've set correct values for this in Group Policy, but sessions are still logging off.

My domain account is Ok, having problems only with this server.
This server had Terminal Server Role, but it was removed later.

Can anybody help with this?

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2021-04-08T08:38:07.293+00:00

    Hello @Gillan Polyanskiy

    Is there a domain policy that overrides the setting you made?

    1). Select the maximum amount for idle, active and disconnect sessions.
    85608-image.png

    2). Or you can add the registry value on local PC: HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\ KeepAliveEnable DWORD 1

    3). the scrpts.

    Other reference article:
    How to stop remote desktop logoff after closing the connection

    Best Regards
    Karlie

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Gillan Polyanskiy 1 Reputation point
    2021-04-13T04:19:41.79+00:00

    I've tried 1 and 2 points of your answer... no effect. Registry, policies editor... The session is still closing after disconnect.

    0 comments No comments

  3. Anonymous
    2021-04-14T01:31:49.267+00:00

    Moreover, change the Local Security Policy under Local Policies->Security Options-> Interactive logon: Do not require CTRL+ALT+Del" to Enabled

    87523-image.png

    Enable the "Set time limit for disconnected sessions" and set it to Never

    Set time-out settings for disconnected, active, and idle sessions

    0 comments No comments

  4. Gillan Polyanskiy 1 Reputation point
    2021-04-15T04:03:51.703+00:00

    I've tried last recommends. No effect.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.