Jul 24 2018 07:47 AM - last edited on Nov 09 2023 11:10 AM by
Affected: All Server 2019 Insider Previews including build 17713
Steps to reproduce: (no need to install RDSH role to reproduce the bug)
If fSingleSessionPerUser == 0 you will not be able to reconnect to any disconnected session.
However, now the interesting part:
If you lock the session before the disconnect (ctrl+alt+end -> lock, then close mstsc) you will be successfully reconnected.
I suspect the error is in termsrv.dll's CSessionArbitrationHelper::Sessions_EnumDisconnectedUserSessions function.
You can alsoe reproduce this without rdp, directly on the console.
Set the policy as mentioned above, log in as Administrator, disconnect your own session in task manager, log in again and you get a new session.
This bug seems to be in termsrv.dll since Windows 10 1803 already.
Jul 26 2018 01:25 AM
Aug 01 2018 05:10 AM
The bug still happens with Windows Server 2019 Insider Preview Build 17723
Nov 04 2018 12:33 PM
The same problem still exist.
May 03 2019 10:43 AM
Do we have any solutions for this?
We have same problem even for current build of 2019 server that is used in Production
So problem migrated further..
Please help
Aug 05 2019 07:12 AM
2016 server task manager's user list has right-click "Reconnect". Seems like the community agrees this issue is a result of the RemoteFX configuration being enabled by default
Aug 12 2019 09:09 AM
You mentioned some story (link was broken, i found it via search)..
but as i can see it is not related to our issue..RD is terminated - is not the same that we have.
We always get a new session, no matter what happened (resize, short internet outage, etc).
Just not possible to connect to previously running session, when this feature is enabled.
Regards,
Sergii Vinnikov
Aug 25 2019 10:38 PM
We have the same Problem with a Production Windows 2019 Server (Build 17763)
Locking the Session before disconnecting does seem to help, but is not a usable workaround for us.
Apr 22 2020 07:46 AM
I do facing the same issues where when i try to connect to newly deployed server 2019 each time its establishing a new session instead of connecting back to new session and the session count is keep increasing. Have tried to applied the solution as per below but didn't work through. Is it really a bug with server 2019 or something i need to look for?
Apr 22 2020 08:16 AM
no Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options - different options not working for us
keepalive - also not helpful.
even with "Disconnected" session - you will never get this session back with current bug
May 12 2020 10:53 AM
Solution
Here is the solution:
gpmc.msc — Edit users policies— User Configuration — Policies — Administrative Templates — All Settings — Remove Lock Computer — Change to Enabled
May 12 2020 10:54 AM
Here is the solution:
gpmc.msc — Edit users policies— User Configuration — Policies — Administrative Templates — All Settings — Remove Lock Computer — Change to Enabled
May 12 2020 01:48 PM
May 14 2020 12:50 AM
@sergiiV2285 I have tried that solution but didn't work. Did you tired at your end.
May 14 2020 03:52 AM
@MosheSI Awesome! Thanks a lot!
Another way is setting the DisableLockWorkstation Registry Value to 1:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DisableLockWorkstation"=dword:00000001
May 14 2020 04:10 AM
May 12 2020 10:53 AM
Solution
Here is the solution:
gpmc.msc — Edit users policies— User Configuration — Policies — Administrative Templates — All Settings — Remove Lock Computer — Change to Enabled