One of the annoying default settings in Windows 10 is that it will automatically log off idle Remote Desktop sessions (RDS) after a period of inactivity. Luckily, there are a few Group Policy settings that we can change to prevent this.
1. Run gpedit.msc
2. Expand Computer Configuration
-> Administrative Templates
-> Windows Components
-> Remote Desktop Services
-> Remote Desktop Session Host
-> Session Time Limits
.
3. If any of the listed policies are not Disabled
, double-click on them to open the Properties window.
4. Click on the Disabled
radio button and click OK.
5. Expand User Configuration
-> Administrative Templates
-> Windows Components
-> Remote Desktop Services
-> Remote Desktop Session Host
-> Session Time Limits
.
6. If any of the listed policies are not Disabled
, double-click on them to open the Properties window, and follow the same instructions as for step #4 above to disable them.
7. Reboot the computer for the changes to take effect.
Your Windows 10 computer should no longer log you off automatically after being idle.