Windows 7 Forums


Windows 7: Remote Desktop - Set Time Limit for Active Sessions


Remote Desktop - Set Time Limit for Active Sessions

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

Applies to:
7,8,Vista

Featured Tutorial

Microsoft Account Primary Alias Email Address - Change
Microsoft Account Primary Alias Email Address - Change

How to Change your Microsoft Account Primary Alias Email Address

Online Scanners - Scan Suspicious Files on your PC
Online Scanners - Scan Suspicious Files on your PC

How to Scan Suspicious Files using Online Scanners

Peppermint3 - Create Live CD/DVD/USB To Use For Emergency Backup
Peppermint3 - Create Live CD/DVD/USB To Use For Emergency Backup

How to Perform an Emergency Data Backup When Windows 7 Will Not Boot

Chrome GPU Hardware Acceleration - Turn On or Off
Chrome GPU Hardware Acceleration - Turn On or Off

How to Turn GPU "Hardware Acceleration" On or Off in Chrome

Microsoft Accounts - Link
Microsoft Accounts - Link

How to Link your Microsoft Accounts

Troubleshooting Windows 7 Failure to Boot
Troubleshooting Windows 7 Failure to Boot


How to Set Time Limit for Active Remote Desktop Sessions

information   Information
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 Desktop Services session disconnects, which allows the user to save open files and close programs.

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)
Remote Desktop - Set Time Limit for Active Sessions-gpedit-1.jpg
3. In the right pane, right click on Set time limit for active Remote Desktop Services sessions and click on Edit. (see screenshot above)

4. To Remove Time Limit for Active 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 Active Remote Desktop Services Sessions
A) Select (dot) Enabled. (see screenshot below step 6)

B) Under Options, click on the Active 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)
Remote Desktop - Set Time Limit for Active Sessions-gpedit-2.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
Remote Desktop - Set Time Limit for Active Sessions-reg1.jpg
4. To Set Time Limit for Active 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 MaxConnectionTime and press Enter. (see screenshot below)
Remote Desktop - Set Time Limit for Active Sessions-reg2.jpg
B) In the right pane, right click MaxConnectionTime 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)
Remote Desktop - Set Time Limit for Active Sessions-reg4.jpg

Time LimitRegistry Value data
Never0 (number zero)
1 minute60000
5 minutes30000
10 minutes60000
15 minutes90000
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 Active Remote Desktop Services Sessions
A) In the right pane, right click MaxConnectionTime and click on Delete. (see screenshot below step 4A)

B) Click on Yes. (see screenshot below)
Remote Desktop - Set Time Limit for Active Sessions-delete.jpg
6. Close regedit.

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




Related Tutorials

Need more help? Try searching our extensive help and support site.
Loading
Comment

 Remote Desktop - Set Time Limit for Active Sessions problems?



Tutorial Tools



Similar help and support threads for: Remote Desktop - Set Time Limit for Active Sessions
Windows 7 Tutorial Category
Black Screen on Login after Remote Desktop sessions Network & Sharing
Remote Desktop Automatically Logs Me Out Each Time I Connect Network & Sharing
'parallel' remote desktop sessions - how can i get rid of these? Network & Sharing
Remote Desktop - Terminate Session when Time Limits are Reached Tutorials
Remote Desktop - Set Time Limit for Idle Sessions Tutorials


All times are GMT -5. The time now is 02:37 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32