Idle application get automatically closed on Windows Server 2019 and 2022

Anonymous
2024-07-16T18:23:32+00:00

On Windows Server 2019 and 2022 if i keep any application idle for 3 hours it will automatically get closed. I am sure there is some configuration to avoid applications getting closed in this way but not able to find where i can change the configuration. Can someone in the community help me out with this ?

Windows Server Remote and virtual desktops Session connectivity

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-07-17T01:22:10+00:00

    Hello,

    There are a few possible reasons why this might be happening:

    1. Remote Desktop Services Session Timeout: If you are using Remote Desktop Services (RDS), it's possible that the session timeout settings are configured to log off inactive sessions, which could result in applications closing. You can check these settings by editing Group Policy Objects (GPOs) under Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Connections.
    2. Power Management Settings: Power management settings might be configured to hibernate or sleep the system after a certain period of inactivity, which could cause running applications to close. Check the power plan settings in the Control Panel.
    3. Scheduled Tasks:

    Scheduled tasks might be running on the server that detect inactivity and close applications. Look through the Task Scheduler to see if there are any relevant tasks set up.

    To investigate further:

    • Run the Event Viewer to see if there are any events logged around the time when the applications close.
    • Use the built-in monitoring tools like Performance Monitor to see if there are any noticeable system changes before the applications close.
    • Review the system logs and application logs for any clues about what might be causing the applications to close.

    Kind Regards,

    Karlie

    0 comments No comments
  2. Anonymous
    2024-07-18T11:16:11+00:00

    Hi Karlie,

    Thanks for the detailed response. I will try out the solutions/configurations given by you and will let you know :)

    Appreciate your efforts.

    0 comments No comments