You can easily Force log off of idle sessions on remote servers by creating a scheduled task on these servers. In the below example i would assume forcing idle sessions to log off after one hour.
To create the needed task you need to do the following:
- Open the Task Scheduler, Click Task Schedule library
- Create New Task
- Type the name of the task and select "Run with Highest Privilege" check box
- On the triggers click New and check "On Idle"
- From the Actions, Click New and choose the logoff.exe (The default path of the logoff.exe is C:\Windows\System32)
- In the Conditions Tab, Set the idle time. In this example, the idle time is 1 Hour.
Its a simple solution but would fix the problem of several idle connections on the server blocking other users to connect (I am mainly talking about normal servers with no Terminal server role installed where you have only two sessions available for remote users).