Set time limit for active but idle Remote Desktop Services sessions
User Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Session Time Limits
TS_SESSIONS_Idle_Limit_1 TerminalServer.admx Windows 11 25H2 3.0 Registry
| Key (user) | HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services |
|---|---|
| Value name | none on the policy itself; the options below write their own values |
| Supported on | At least Windows Server 2003 operating systems or Windows XP Professional |
| Namespace | Microsoft.Policies.TerminalServer |
Options
Option Value written Type and range Default Idle session limit: (required) MaxIdleTime 0 Never60000 1 minute300000 5 minutes600000 10 minutes900000 15 minutes1800000 30 minutes3600000 1 hour7200000 2 hours10800000 3 hours21600000 6 hours28800000 8 hours43200000 12 hours57600000 16 hours64800000 18 hours86400000 1 day172800000 2 days259200000 3 days345600000 4 days432000000 5 days
0
What each state writes
Computed with the same rules RFF Conformance uses, with the default options. Pick your own options in the builder below.
HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services | MaxIdleTime | 0 REG_DWORD |
HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services | MaxIdleTime | value removed |
HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services | MaxIdleTime | value removed |
In Intune
This is a Policy CSP setting, so it is in Intune's Settings Catalog by name. For a custom (OMA-URI) profile, use:
| OMA-URI (user) | ./User/Vendor/MSFT/Policy/Config/ADMX_TerminalServer/TS_SESSIONS_Idle_Limit_1Windows builds: 10.0.22000, 10.0.19043.1202, 10.0.19042.1202, 10.0.19041.1202 |
|---|---|
| Data type | String |
| Value to enable | <enabled/><data id="TS_SESSIONS_IdleLimitText" value="0"/> |
| Value to disable | <disabled/> |
From Microsoft's Policy CSP DDF files (DDFv2Feb2026.zip, 2026-02-19).
Build it
Choose a state and options. You get the exact writes, a .reg file, a script that applies them, and a script that checks a machine and reports drift. Nothing leaves your browser.
Keep it set across your fleet
Group Policy writes these values once per refresh and never tells you when something changes them back. RFF Conformance reads them from every computer, shows which ones drifted and who changed them, and puts them back on approval, with each change versioned and undoable. It works without a domain controller.
Source: Windows 11 2025 Update (25H2), version 3.0, published by Microsoft 2026-02-02. Policy names and option labels are Microsoft's. Microsoft's full description of this setting: search Microsoft Learn.
ADMX Viewer is open source: github.com/deadarcher/AdmxViewer. Found a wrong registry value, a missing catalog, or a template that won't load? Open an issue, email brian@getrff.com, or use the form below.
Your note and the summary below are all that get sent. Your file stays on your machine.