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 - Set Time Limit for Idle Sessions


Remote Desktop - Set Time Limit for Idle Sessions

How to Set Time Limit for Idle Remote Desktop Sessions
Published by Brink
19 Oct 2010
Published by

How to Set Time Limit for Idle Remote Desktop Sessions

information   Information
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 minutes before the Remote Desktop Services session disconnects, which allows the user to press a key or move the mouse to keep the session active.

If you have a console session, active session time limits do not apply.

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
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_idle.jpg
3. In the right pane, right click on Set time limit for active but idle Remote Desktop Services sessions and click on Edit. (see screenshot above)

4. To Remove Time Limit for Idle Remote Desktop Services Sessions
A) Select (dot) either Not Configured or Disabled. (see screenshot below step 6)
NOTE: Not Configured is the default setting.

B) Go to step 6.
5. To Set Time Limit for Idle Remote Desktop Services Sessions
A) Select (dot) Enabled. (see screenshot below step 6)

B) Under Options, click on the Idle session limit drop down box and select an amount of time you would like to set as the time limit. (see screenshot below step 6)
6. Click on OK. (see screenshot below)
-gpedit-2_idle.jpg
7. Close the Local Group Policy Editor window.



OPTION TWO
Manually in Registry Editor
1. Open the Start Menu, then type regedit in the search box and press Enter.

2. If prompted by UAC, then click on Yes.

3. In regedit, navigate to the location below: (see screenshot below)
Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
-reg1.jpg
4. To Set Time Limit for Idle Remote Desktop Services Sessions
A) In the right pane of Terminal Services, right click on a empty space, click on New and DWORD (32-bit) Value, type MaxIdleTime and press Enter. (see screenshot below)
-reg2_idle.jpg
B) In the right pane, right click MaxIdleTime and click on Modify. (see screenshot above)
C) Select (dot) Decimal, then type in the registry Value data in the table below for the amount of time you want to set as the time limit and click on OK. (see screenshot below)
Name:  Reg4_Idle.jpg
Views: 40451
Size:  23.3 KB

Time LimitRegistry Value data
Never0 (number zero)
1 minute60000
5 minutes300000
10 minutes600000
15 minutes900000
30 minutes1800000
1 hour3600000
2 hours7200000
3 hours10800000
6 hours21600000
8 hours28000000
12 hours43200000
16 hours57600000
18 hours64800000
1 day86400000
2 days172800000
3 days259200000
4 days345600000
5 days432000000
D) Go to step 6.
5. To Remove Time Limit for Idle Remote Desktop Services Sessions
A) In the right pane, right click MaxIdleTime and click on Delete. (see screenshot below step 4A)

B) Click on Yes. (see screenshot below)
Name:  Delete.jpg
Views: 40427
Size:  29.5 KB
6. Close regedit.

7. Log off and log on, or restart the computer to apply the changes.
That's it,
Shawn





Comment

 Remote Desktop - Set Time Limit for Idle Sessions




Tutorial Tools





Similar help and support threads
Windows 7 Tutorial Category
Black Screen on Login after Remote Desktop sessions
Hi, I connect to my work computer through a VPN and remote desktop, and often times remote desktop (I use NLA) works once, but after the first disconnect I can't login remotely. Power settings on the computer are set so it never goes asleep and never turns off the display. In addition, when...
Network & Sharing
Remote features not working -remote desktop, WMC, iTunes remote, etc.
OS: Win8 64bit (My desktop is Win8, my laptop is Win7. We're dealing with the desktop here.) Where I am: university network, but these features seem to be working with my laptop. Things I've checked: allowing services through Windows Firewall (Bonjour, WMC services, etc.) Allowing remote...
Network & Sharing
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
Limit idle time of switched users
Dose anyone have an idea on how to log out users that are idle on Windows 7? I work for a company that has computers in general areas, anyone can walk up and login and use it for business. Many of my users don't log off and later when they change their password these machines lock out their AD...
General Discussion
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
Remote Desktop - Terminate Session when Time Limits are Reached
How to Terminate Remote Desktop Session when Active or Idle Time Limits are Reached 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...
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 04:02.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App