How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune

Key Takeaways

  • Enabling this policy allows administrators to define how long an active but idle Remote Desktop Services session can remain inactive before it is automatically disconnected.
  • Users receive a warning notification two minutes before the session disconnects, giving them time to resume activity and keep the session active.
  • Idle session time limits apply only to Remote Desktop Services sessions, not to console sessions.
  • If the policy is disabled or left unconfigured, Remote Desktop Services keeps idle sessions active indefinitely by default.
  • Administrators can also configure sessions to fully end instead of disconnecting after the time limit is reached by enabling the End session when time limits are reached policy setting.

In this article, I am going to discuss about how to set a time limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Microsoft Intune. The Set time limit for active but idle Remote Desktop Services sessions policy defines how long a user session can remain idle before it is disconnected. For Windows 365 Flex Shared Cloud PCs, the default idle session timeout is 15 minutes. This policy setting is available under both Computer Configuration and User Configuration. When both are configured, the Computer Configuration setting overrides the User Configuration setting.

Table of Content

Terminal Server Idle Remote Desktop Services Session Limit – TS_SESSIONS_Idle_Limit_2

The table below provides a brief overview of the policy scope, Windows editions, and applicable operating systems, along with the minimum required patch (KB) details.

Policy ScopeEditionsApplicable OS
✅ Device
❌ User
✅ Pro
✅ Enterprise
✅ Education
✅ IoT Enterprise / IoT Enterprise LTSC
✅ Windows 10, version 2004 with KB5005101 [10.0.19041.1202] and later
✅ Windows 10, version 20H2 with KB5005101 [10.0.19042.1202] and later
✅ Windows 10, version 21H1 with KB5005101 [10.0.19043.1202] and later
✅ Windows 11, version 21H2 [10.0.22000] and later
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Table. 1 (Credit: Microsoft)

Create a Configuration to Set Time Limit for Active But Idle Remote Desktop Services Sessions

To set a time limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex shared Cloud PCs using Microsoft Intune, follow these steps. First, sign in to the Microsoft Intune Admin Center with your administrator credentials.

  • Navigate to Devices > Windows > Manage devices > Configuration
  • Click on +Create +New Policy
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex  with Intune. Fig. 1
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 1

Next, we will create a new configuration profile from scratch. First, need to provide the options mentioned below. The settings catalog is a library of available configurations in Intune.

Patch My PC
  • Platform: Windows 10 and later
  • Profile type: Settings catalog
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 2
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 2

In the Basics details pane, name the configuration policy as “Set Time Limit for Active but Idle Remote Desktop Services Sessions.” It is also helpful to provide a brief description of the policy’s purpose. In this case, I have applied it to Windows 365 Flex shared Cloud PCs. After that, click Next.

How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex. Fig. 3
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 3

We can now add the necessary settings to the Configuration settings pane. To do this, click +Add settings in the bottom-left corner of the page.

Note: In Microsoft’s testing, they have discovered that admins may experience performance degradation when more than 400 settings are added to a single policy. While they continue to make improvements, please consider this when designing your policies.

How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 4
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 4

Search for “Session Time Limits” as your keyword. This will help us find the appropriate policy based on your current needs. Next, navigate to the category labelled Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits. Click on it, then check the option “Set time limit for active but idle Remote Desktop Services sessions” Finally, close the Settings picker window.

How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 5
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 5

On the Session Time Limits configuration settings page, make sure to enable the option for Set time limit for active but idle Remote Desktop Services sessions. Additionally, set the Idle session limit (Device) to 30 minutes, and then click Next.

Note: Idle session limit (device) settings range from 1 minute to 5 days; the policy CSP is ./Device/Vendor/MSFT/Policy/Config/ADMX_TerminalServer/TS_SESSIONS_Idle_Limit_2.

How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 6
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 6

On the next page, leave the Scope tags as Default. If your tenant has custom scope tags, you can select them based on your policy needs, then click on Next.

How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex. Fig. 7
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 7

I am assigning the configuration policy to the Windows 365 Flex Shared Cloud PCs device group. To do this, click on Add groups and select the desired device group under the Included groups option. In this example, I am not using any filters, and I have left the Excluded groups option blank.

How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 8
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 8

On the Review + create page, carefully review all the settings you’ve defined for the Set Time Limit for Active But Idle Remote Desktop Services Sessions policy. Once you’ve confirmed everything is correct, select Create to deploy the policy.

How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 9
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 9

Monitor the Set Time Limit for Active But Idle Remote Desktop Services Sessions Policy Deployment

The configuration policy has been deployed to the  Windows 365 Flex Shared Cloud PCs Microsoft Entra ID Device group. Once the Cloud PC is synced, the policy will take effect immediately. To monitor the policy deployment status from the Intune Portal, follow the steps below

  • Navigate to Devices > Windows Configuration > Search for the Set Time Limit for Active But Idle Remote Desktop Services Sessions configuration policy.
  • Under the Device and user check-in status, you can see the policy’s deployment status
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 10
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 10

Intune Event Log Analysis

We can now verify if the Set Time Limit for Active But Idle Remote Desktop Services Sessions policy is functioning correctly. First, log in to the device that is affected by the policy. Then, check the policy’s status using the Intune Event Logs. To do this, open the Event Viewer on the device.

  • Navigate to Applications and Services Logs > Microsoft > Windows > Devicemanagement-Enterprise-Diagnostics-Provider – Admin

Filter the latest logs using Event ID 814 to easily locate the successful log. The screenshot below indicates that the policy was successfully applied to the system, confirming that our policy has worked effectively.

How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 11
How to Set Time Limit for Active But Idle Remote Desktop Services Sessions on Windows 365 Flex with Intune. Fig. 11

Need Further Assistance or Have Technical Questions?

Join the LinkedIn Page and Telegram group to get the latest step-by-step guides and news updates. Join our Meetup Page to participate in User group meetings. Also, join the WhatsApp Community to get the latest news on Microsoft Technologies. We are there on Reddit as well.

Author

Vaishnav K has 12 years of experience in SCCM, Intune, Modern Device Management, and Automation Solutions. He writes and shares knowledge about Microsoft Intune, Windows 365, Azure, Entra, PowerShell Scripting, and Automation. Check out his profile on LinkedIn.

Leave a Comment