Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been searching for a while, but I don't find a solution for this anywhere... I'm in a factory and they have Windows Server 2012 with an HMI (HumanMachineInterface) on it. They have computers that they can log on the server to access the HMI. However every 15 minutes they are logged off of their session automatically. This is really annoying because they have to do it 50 times a day.

How can I disable that feature?

share|improve this question
up vote 7 down vote accepted

Quoting from Technet:

To specify timeout and reconnection settings for a remote session:

On the RD Session Host server, open Remote Desktop Session Host Configuration. To open Remote Desktop Session Host Configuration, click Start, point to Administrative Tools, point to Remote Desktop Services, and then click Remote Desktop Session Host Configuration.

Under Connections, right-click the name of the connection, and then click Properties.

In the Properties dialog box for the connection, on the Sessions tab, select the following options as necessary:

Select the Override user settings check box, and then set timeout settings for End a disconnected session, Active session limit, and Idle session limit.

Select the Override user settings check box, and then select one of the following reconnection settings: Disconnect from session or End session.

Click OK.

Changes to timeout and reconnection settings are not applied to sessions that are connected when the change is made. The changes will take effect the next time the user establishes a new connection to the RD Session Host server.

You can also configure timeout and reconnection settings by applying the following Group Policy settings:

  • Set time limit for disconnected sessions
  • Set time limit for active but idle Remote Desktop Services sessions
  • Set time limit for active Remote Desktop Services sessions
  • Terminate session when time limits are reached

These Group Policy settings are located in the following locations:

Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits

User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits

These Group Policy settings can be configured by using either the Local Group Policy Editor or the Group Policy Management Console (GPMC).

share|improve this answer
Thanks, I will try that as soon as I can! – Speccy Feb 28 '13 at 21:03
@Speccy, given you accepted this answer the day after your above comment: can we assume this worked for you? (I know, it's been a while...) – Arjan Jul 25 '14 at 15:57

On Windows Server 2012 R2:

Local Security Policy -> Local Policies\Security Options

Microsoft Network server: Amount of idle time required before suspending session

15 minutes is default.

share|improve this answer
For us non-admins start-->run: secpol.msc to edit Local Security Policy. Thanks Niels this worked for me. :) – Brian Aug 7 '15 at 10:17
You can also go to Control Panel > Administrative Tools > Local Security Policy ;) – user2464083 Dec 31 '15 at 17:21

Anyone else catch the typo in 2012 R2's Group Policy? Nice work, MS.

enter image description here

share|improve this answer

It would seem that the policy for the RDP sessions are set to disconnect after a persiod of time (15 minutes) Do you manage the Windows 2012 server?

If it is another department, conatct thenm as this may be a policy that they apply at the doamin level.

Also note they may wish this disconnect to happen to avoid too many sessions or someone accidentily making a change.

share|improve this answer
Someone else installed the system and he's not available anymore. So, I'm now managing it. The server is really simple and only have 5 remote desktop connections. – Speccy Feb 28 '13 at 18:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.