How do I configure session time limits?

disconnect user session time limits end remote desktop session

Sometimes you might want to set specific time limits or change the default behaviour for disconnected remote desktop users.

You can simply set some group policies, which give you a more detailed control over the session handling:

  1. Open your group policy editor (Start -> Run -> gpedit.msc)
  2. Navigate to Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Session Time Limits
  3. Please reboot your machine, after you have changed a group policy.

Please note, if your machine is joined to a domain, a domain group policy might overwrite your local group policy.

Following policies are available:

  • Set time limit for disconnected sessions

    Specify the maximum amount of time that a disconnected session remains active on the server.

  • Set time limit for active but idle sessions

    Enable this policy to set to disconnect active but idle remote desktop sessions after a specified amount of time.

  • Set time limit for active sessions

    Set a time limit to automatically disconnect active sessions after the specified amount of time.

  • End sessions when time limits are reached

    Specify a time limit for active or idle remote desktop sessions. The user will get logged out instead of disconnected.


Last updated: 22 Jul 2021

Related articles

  • Performance Issue with Windows 10?
  • Are server operating systems supported?
  • Issues after recent Windows Updates?
  • Why can I only connect with my Administrator account?
  • XP/VS Server and Core Isolation mode
  • Azure Virtual Machines
  • Silent install of XP/VS Server
  • Supported operating systems

    Windows XP

    All versions including XP Home

    Windows Vista

    All versions including Vista Home Basic and Home Premium

    Windows 7 / 8 / 8.1 / 10 / 11

    All versions including Windows 7 Starter, Home Basic and Home Premium / Windows 8/8.1/10/11 Home (Standard), Professional and Enterprise

    Windows Server

    Standard and Professional only

    Windows Server 2003/2008/2008 R2/2012/2012 R2/2016/2019/2022


    Small Business Server (also 2011)
    Web Server and Foundation Server (without the Terminal Services / Remote Desktop Services Role)
    Windows Server 2012 (R2)/2016/2019/2022 all versions, also Essentials and Foundation

    Remote Desktop Software

    Official partners

    © 2005 - 2024 Thinstuff s.r.o.