Answered by:
Disconnected sessions get logged off

Question
-
I'm struggling with a couple of 2012R2 servers within a domain which don't have Terminal Services Role installed but certain users need to connect to them for some dev work. What happens is even with my admin account a disconnected session (Remote desktop window closed) gets logged off after 1 min. Looking through the security log I see a couple of things I don't quite get. E.g. when I leave my RD window open but idle and it gets to the logon screen I can log back on not loosing my session yet in the event log I see 4634 "An account was logged off" then 4624 "Account successfully logged on" a couple of times followed by 4800 "The workstation was locked" and 1448 "A logon was attempted using explicit credentials". After a while I see 4634 again even though I'm still looking at the screen which I don't understand.
When I close the RD window and reconnect after 1min I see 4634 (log off) with logon type 7 followed by 4634 logon type 3. Then 4779 "A session was disconnected from a Windows Station" and a minute later 4647 "User initiated logoff" hello???
I checked gpresult and I found the setting I specifically set for the above not to happen so we've got:
Admin Templates:
- Local Policy: MaxIdleTime: disabled
- Local Policy:MaxDisconnectionTime: disabled
with the above repeated for user configuration. On top of that I have the following registry set
- KeepAliveEnable: 1
- KeepAliveInterval:
Where else should I be looking?
yaro
- Changed type Dharmesh SMicrosoft employee Monday, December 22, 2014 5:56 AM
Friday, December 19, 2014 9:36 AM
Answers
-
Just remembered there is another reg key for TS under HKLM\System\Current..\Control\TS\Winstation\RDP-TCP (roughly from memory) where the keys above are present as well. I was playing with them and failing under HKLM\Software\Policies\Microsoft\WindowsNT\TS\
I can only assume now after things are working they way I need them the later apply only when the Remote desktop infrastructure Role is in place.
yaro
- Proposed as answer by Dharmesh SMicrosoft employee Monday, December 22, 2014 5:56 AM
- Marked as answer by Dharmesh SMicrosoft employee Tuesday, December 23, 2014 2:29 AM
Sunday, December 21, 2014 7:38 PM
All replies
-
Just remembered there is another reg key for TS under HKLM\System\Current..\Control\TS\Winstation\RDP-TCP (roughly from memory) where the keys above are present as well. I was playing with them and failing under HKLM\Software\Policies\Microsoft\WindowsNT\TS\
I can only assume now after things are working they way I need them the later apply only when the Remote desktop infrastructure Role is in place.
yaro
- Proposed as answer by Dharmesh SMicrosoft employee Monday, December 22, 2014 5:56 AM
- Marked as answer by Dharmesh SMicrosoft employee Tuesday, December 23, 2014 2:29 AM
Sunday, December 21, 2014 7:38 PM -
Hi,
From your comment seems you have resolved your issue. Do you need any other assistance?
Thanks.
Dharmesh Solanki
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.Monday, December 22, 2014 5:56 AM -
Well, it's been resolved. Thanks
yaro
Monday, December 22, 2014 10:10 AM -