Have you ever seen this message?  I know I have.  There is an easy, command line way to disconnect inactive users that are using one of the remote connection slots.

As long as you have an open connection to the server in question, you can access the terminal services.  The easiest way to connect to the server is through a network share, where you authenticate to the server, or a map drive.

Once you have done that you can use the command prompt and enter the following commands:  (All commands are in bold variable data is italicized)

<strong>query session /server:</strong> <em><strong>servername</strong></em>

<em><strong>
</strong></em>

<code>Next, choose the session ID that you would like to disconnect. Enter...</code>

<code><strong>reset session <em>#</em> /server:<em>servername</em></strong>

<strong><em>
</em></strong>

</code>

Now if you run the first command again:

<strong>query session /server:</strong> <em><strong>servername</strong> </em>

<code>You notice that the session that you selected is no longer in the list.  Quick way to free up those RDP sessions.</code>

<code> </code>