Remote Desktop: Automatically Log off Idle Remote Desktop Sessions in Windows
Reference:
https://www.top-password.com/blog/tag/set-time-limit-for-active-but-idle-remote-desktop-services-sessions/\
Steps:
- Open Local Group Policy Editor
- Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Session Time Limits
- 'Set time limit for disconnected sessions' - Enable and configure
- 'Set time limit for active but idle Remote Desktop Services session' - Enable and configure
- Reboot