Reset RDP Sessions

When using Windows RDP you may encounter the error message ‘The terminal server has exceeded the maximum number of allowed connections’. You can delete open sessions or use the admin switch to administer the server.

At the command prompt:
To administer the server:

mstsc /v:<server> /admin

To obtain a list of current sessions:

query session /server:<server>

To close a session – [ID] can be found from session list

reset session [ID] /server:<server>