How To Logoff Remote Session after a set time Using Group Policy

This is a known issue for a lot of IT department where multiple administrators logging to servers remotely and forget to log off.

Remote desktop also known as Terminal services can be controlled from Group Policy.

This KB will show you how to control session on a server using Group Policy.

To set automatic logoff of remote sessions on a server we need to edit the following entries on Group Policy:
 If in a domain or in a local server create or modify the following:

Go to -> Local Computer Policy\Computer Configuration\Administrative Templates\Windows Components\Terminal Services\Sessions folder,

the following settings can be modified for your need:
Set time limit for disconnected sessions
Set time limit for active sessions
Set time limit for idle sessions
Terminate session when time limits are reached