Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Remote Desktop - Terminate Session when Time Limits are Reached


Remote Desktop - Terminate Session when Time Limits are Reached

How to Terminate Remote Desktop Session when Active or Idle Time Limits are Reached
Published by Brink
19 Oct 2010
Published by

How to Terminate Remote Desktop Session when Active or Idle Time Limits are Reached


information   Information
This will allow you to enable to terminate (that is, the user is logged off and the session is deleted from the server) a Remote Desktop session after time limits set by you for active or idle sessions are reached.

By default, Remote Desktop Services disconnects instead of terminates sessions that reach their time limits.

You must be logged in as an administrator to be able to do this tutorial.

warning   Warning
While all editions of Vista, Windows 7, and Windows 8 can be a remote desktop client...
  • Only the Vista Business, Ultimate, and Enterprise editions can host a remote desktop connection.
  • Only the Windows 7 Professional, Ultimate, and Enterprise editions can host a remote desktop connection.
  • Only the Windows 8 Pro and Enterprise editions can host a remote desktop connection.





OPTION ONE
Using a REG File Download
1. To Disconnect Remote Desktop Sessions when Time Limits are Reached
NOTE: This is the default setting. If the status is set to Not Configured, Remote Desktop Services disconnects a timed-out session, unless specified otherwise in local settings.
A) Click on the Download button below to download the file below.
Disconnect_Timed_Out_Remote_Desktop_Sessions_Unless_Specified_Otherwise.reg
download
B) Go to step 4.
2. To Always Disconnect Remote Desktop Sessions when Time Limits are Reached
NOTE: If the status is set to Disabled, Remote Desktop Services always disconnects a timed-out session, even if specified otherwise by the server administrator.
A) Click on the Download button below to download the file below.
Always_Disconnect_Timed_Out_Remote_Desktop_Sessions.reg
download
B) Go to step 4.
3. To Terminate Remote Desktop Sessions when Time Limits are Reached
NOTE: If the status is set to Enabled, Remote Desktop Services terminates (that is, the user is logged off and the session is deleted from the server) any session that reaches its time-out limit.
A) Click on the Download button below to download the file below.
Terminate_Timed_Out_Remote_Desktop_Sessions.reg

download
4. Save the .reg file to your desktop.

5. Right click on the downloaded .reg file and click on Merge.

6. Click on Run, Yes (Windows 7/8) or Continue (Vista), Yes, and OK when prompted.

7. Log off and log on, or restart the computer to apply.

8. When done, you can delete the downloaded .reg file if you like.



OPTION TWO
Through the Local Group Policy Editor
1. Open the all users, specific users or groups, or all users except administrators Local Group Policy Editor for how you want this policy applied.

2. In the left pane, click on to expand User Configuration, Administrative Templates, Windows Components, Remote Desktop Services, Remote Desktop Session Host, and Session Time Limits. (see screenshot below)
-gpedit-1_terminate.jpg
3. In the right pane, right click on Terminate session when time limits are reached and click on Edit. (see screenshot above)

4. To Disconnect Remote Desktop Sessions when Time Limits are Reached
A) Select (dot) Not Configured. (see screenshot below step 7)
NOTE: This is the default setting. If the status is set to Not Configured, Remote Desktop Services disconnects a timed-out session, unless specified otherwise in local settings.
B) Go to step 7.
5. To Always Disconnect Remote Desktop Sessions when Time Limits are Reached
A) Select (dot) Disabled. (see screenshot below step 7)
NOTE: If the status is set to Disabled, Remote Desktop Services always disconnects a timed-out session, even if specified otherwise by the server administrator.
B) Go to step 7.
6. To Terminate Remote Desktop Sessions when Time Limits are Reached
A) Select (dot) Enabled. (see screenshot below step 7)
NOTE: If the status is set to Enabled, Remote Desktop Services terminates (that is, the user is logged off and the session is deleted from the server) any session that reaches its time-out limit.
7. Click on OK. (see screenshot below)
-gpedit-2_terminate.jpg
8. Close the Local Group Policy Editor window.
That's it,
Shawn



Comment

 Remote Desktop - Terminate Session when Time Limits are Reached




Tutorial Tools





Similar help and support threads
Windows 7 Tutorial Category
Remote Desktop - Set Time Limit for Active Sessions
How to Set Time Limit for Active Remote Desktop Sessions This allows you to specify the maximum amount of time that a Remote Desktop Services session can be active before it is automatically disconnected. If a time limit is set, the user receives a warning two minutes before the Remote...
Tutorials
Disconnect from remote desktop session via Live Mesh without locking?
Whenever I use Live Mesh, it locks the computerand quits Windows Media Center. Is there anyway of setting it so that I can log out with WMC running and the computer unlocked? Thanks.
Network & Sharing
Remote Desktop Automatically Logs Me Out Each Time I Connect
I'm encountering a very frustrating problem connecting to my office PC (which is Windows 7 Professional). No matter what client I use (Windows 7 built in remote desktop from a W7HP machine, Remote Desktop Client on Android, etc.) when I log on to the host machine it re-logs me on. Basically it...
Network & Sharing
Printers causing Remote Desktop Session to stop working.
Good Morning. I trouble shot an issue with RDP that has me to believe the sollution lies in somthing to do with printer settings in Windows 7. Affected computer RDP's sucessfully logs into a load ballanced terminal server farm, several moments into the session being established I am getting...
Network & Sharing
Remote desktop connection issues -> console session
Hi, Very recently I started having a problem with the remote desktop where it says the following message: "Your computer could not connect to another console session on the remote computer because you already have a console session in progress." What I am trying to do is to access my...
Network & Sharing
Remote Desktop - Set Time Limit for Idle Sessions
How to Set Time Limit for Idle Remote Desktop Sessions This allows you to specify the maximum amount of time that an active Remote Desktop Services session can be idle (without user input) before it is automatically disconnected. If a time limit is set, the user receives a warning two...
Tutorials

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:45.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App