Forum Discussion

KartikDogra's avatar
KartikDogra
Brass Contributor
Feb 24, 2025

Idle Session Time Out Via GPO not working

Hi All,

we have Personal and Multisession Host Pool for Azure Virtual desktop.

to manage session we have enable "Set time limit for active but idle Remote Desktop Services sessions" settings for 2 hours. ideally this should disconnect the active but idle session of users. but to it does not work as expected and session remains active for unlimited time period.

just to clarify the GPO does apply on the system and I see it also set the time limit of 2 hours in registry

any help is greatly appreciated.

 

Thanks

Kartik 

2 Replies

  • Can check on below first:

     

    Verify GPO Application


    1. Check GPO Application: Ensure that the GPO is correctly applied to the target machines. You can use the gpresult /h gpresult.html command to generate a report and verify that the GPO is applied.

    2. Registry Settings: Confirm that the registry settings are correctly applied. The relevant registry keys are:

    • HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    • Ensure that MaxIdleTime is set to the desired value (in milliseconds).

     

    Additional Settings


    1. Session Time Limits: Ensure that other session time limit settings are not conflicting with the idle timeout. Check the following GPO settings:

    • Set time limit for disconnected sessions
    • Set time limit for active but idle Remote Desktop Services sessions
    • End session when time limits are reached
    • KartikDogra's avatar
      KartikDogra
      Brass Contributor

      It is resolved with 

      • End session when time limits are reached set as disabled.

      earlier I had not configured this as enabling this kills the user session instead of just disconnecting it. so have kept it not configured. 

      but if I set this settings as disabled only then it disconnect the idle session time out after my expected idle time.

      which is strange weird as i assume just setting idle session time out should disconnect the session.

Resources