r/AzureVirtualDesktop • • 26d ago

Inactive Session disconnect (not logout) after some time

Hi,

i have the problem with our AVD env that if a user let the session idle (like for lunch break oder a meeting) the session will disconnect after about 30 min.

We checked a lot of things like screensafer, display lock, remote session host timeout and others. But all theses settings are configured for at leased 2 h.

Are there any other configs i should check? Because all i find if i google for that issue is that the idle session should be logged out, but thats not our problem at the moment.

Thanks.

4 Upvotes

9 comments sorted by

4

u/0perator0 26d ago

Have you checked on energy settings? Maybe the device goes to sleep.

Also, is there a reason given in AVD Analytics? Most of the time I see client disconnects and not the sessionhost dropping the connection.

1

u/teqqyde 23d ago

Hi. Yes.

a couple of days ago i saw that diplay standby was set to 30 min and increased it. But same disconnect.

3

u/Atlasavd 26d ago

Since it’s disconnecting rather than logging off, I’d focus on the RDP transport. Check TerminalServices-LocalSessionManager and RemoteDesktopServices-RdpCoreTS event logs around the disconnect time.

Also try disabling RDP Shortpath temporarily and check firewall/VPN idle timeouts. A consistent 30-minute disconnect sounds more like a network timeout than an RDS session policy.

1

u/teqqyde 23d ago

Hi. Thanks for your reply.

I will give this a try but its from all endpoints regardless behind firewall/vpn or not.

2

u/PutUpYourFrankDux 25d ago

Check this setting. In our environment, I have this set to 1 minute : Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Session Time Limits

1

u/teqqyde 23d ago

Thanks for your reply.

All these settings are set to at leased two hours.

1

u/rswwalker 26d ago

Check the policy, Interactive logon: Machine inactivity limit

It’s under Computer->Policies->Windows Settings->Security Settings->Local Policies->Security Options

1

u/teqqyde 23d ago

Hi. Thanks for you reply.

Is set for two hours, so unfortuately not the cause of this issue.

1

u/Angelworks42 24d ago

We still use gpo's but your management environment should be able to set it to anything from no timeout to 5 days (which is the max setting).