Set time limit for disconnected sessions

This policy setting allows you to configure a time limit for disconnected Remote Desktop Services sessions.

You can use this policy setting to specify the maximum amount of time that a disconnected session is kept active on the server. By default, Remote Desktop Services allows users to disconnect from a Remote Desktop Services session without logging off and ending the session.

When a session is in a disconnected state, running programs are kept active even though the user is no longer actively connected. By default, these disconnected sessions are maintained for an unlimited time on the server.

If you enable this policy setting, disconnected sessions are deleted from the server after the specified amount of time. To enforce the default behavior that disconnected sessions are maintained for an unlimited time, select "Never". If you have a console session, disconnected session time limits do not apply.

If you disable or do not configure this policy setting, disconnected sessions are maintained for an unlimited time. You can specify time limits for disconnected sessions on the Sessions tab in the Remote Desktop Session Host Configuration tool.

Note: This policy setting appears in both Computer Configuration and User Configuration. If both policy settings are configured, the Computer Configuration policy setting takes precedence.

Supported on: At least Windows Server 2003 operating systems or Windows XP Professional

Disable Policy:
Registry HiveHKEY_LOCAL_MACHINE
Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value NameMaxDisconnectionTime
Value TypeREG_SZ
Value0

End a disconnected session


  1. Never
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value0
  2. 1 minute
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value60000
  3. 5 minutes
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value300000
  4. 10 minutes
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value600000
  5. 15 minutes
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value900000
  6. 30 minutes
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value1800000
  7. 1 hour
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value3600000
  8. 2 hours
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value7200000
  9. 3 hours
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value10800000
  10. 6 hours
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value21600000
  11. 8 hours
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value28800000
  12. 12 hours
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value43200000
  13. 16 hours
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value57600000
  14. 18 hours
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value64800000
  15. 1 day
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value86400000
  16. 2 days
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value172800000
  17. 3 days
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value259200000
  18. 4 days
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value345600000
  19. 5 days
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    Value NameMaxDisconnectionTime
    Value TypeREG_DWORD
    Value432000000


terminalserver.admx

Administrative Templates (Computers)

Administrative Templates (Users)