In order to make the servers log of idle RDP session automaticity using group policy we need edit the group policy that the servers are using.
Under the Local Computer Policy\Computer Configuration\Administrative Templates\Windows Components\Terminal Services\Sessions folder, the following settings can be made:
• 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
Once you edit the settings refresh the group policy, using the following command: