The terminal server has exceeded the maximum number of allowed connections. The system can not log you on."
Here's a command line hack that you can use to figure out what sessions are connected to the server. Note that you could substitute the IP address for the server name.
query session /server:servername
This will show the list of open sessions.
To clear a session:
reset session [ID] /server:servername
This command won't display any output, but when we run the query command again, we should see that the session has now been disconnected.
Can also use:
qwinsta /server:servername followed by
rwinsta /server:servername [ID]