We help IT Professionals succeed at work.

Logoff Disconnected Users

Moin Ahmed
Moin Ahmed asked
on
Hi,

Is there a way I can configure a registry to logoff disconnected users after 1hour.

I know how to configure it via GPO, but more interested in doing via registry.

Thank you in advance.
Comment
Watch Question

ITSysTechSenior Systems Administrator

Commented:
Could you post which operating system you are using?
Senior Systems Administrator
Commented:
On a GPO enabled computer could you look under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services and tell me if you see MaxDisconnectionTime=128238540 and MaxIdleTime=1282031640 (with different numbers of course). If you do then you can export the key and import it on other computers.

This is for Windows 2008 R2 but should work on other OS versions (this is set for one hour).
Logoff-Disconnected-Users.reg
Moin AhmedSenior System Administrator

Author

Commented:
using 2012R2 - So if I create 2 entries under Terminal services, it should work?
Moin AhmedSenior System Administrator

Author

Commented:
I see this when after setup,

Please advise

Capture.PNG
Moin AhmedSenior System Administrator

Author

Commented:
for 1 hour
Moin AhmedSenior System Administrator

Author

Commented:
Still does not work, waited 1 hour
ITSysTechSenior Systems Administrator

Commented:
1. Was the computer restarted after the change?
2. Did the user disconnect and not logoff?
Please report back.
Moin AhmedSenior System Administrator

Author

Commented:
I restarted the computer after the change. I havent heard back for any issues, hopefully it is working. Thanks for the help
ITSysTechSenior Systems Administrator

Commented:
You're welcome. :)