Virtual machine logging off when closing RDP

0

How do I make the session stay open in windows even when closing RDP?

1 Answer
0

Hi,

My name is Sean from AWS Premium Support, here to help you.

It sounds like when you disconnect from an RDP session to a windows instance, you are being logged out of your windows local/domain account. This is not a default windows behavior. When closing the RDP window directly (using the X button to close the window) , the default outcome is that your session will remain active indefinitely. AWS public windows AMIs use the default setting here (at the time of writing) as well.

It sounds like the Local (or domain) Group Policy has been configured for your instance(s). Please check for local or group policy settings for the following:

Computer Configuration/Administrative Templates/Windows Components/Remote Desktop Services/Remote Desktop Session Host/Session Time Limits

If your instance is domain joined, You may need to work with your active directory administrator to check and configure this setting. If the instance is not domain joined, you can check this setting on the instance using the following steps:

  1. press WIN + R to open the Run menu
  2. enter gpedit.msc to open the local group policy settings
  3. navigate to the specified registry settings and check for the configuration of the Session Time Limits key. If you want sessions to persist indefinitely, set the policy to not configured.

if you are still facing problems after checking this setting, please let us know.

AWS
SUPPORT ENGINEER
Sean_S
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions