Remote Desktop Max Connections Fix

If you have the problem of not being able to log on to a server because it has exceed the maximum number of connections (usually 2) here is an easy fix.

Open a command prompt and type:

query user /server:{YOUR SERVER NAME}  

You will get something back like this:

USERNAMESESSIONNAMEIDSTATEIDLE TIMELOGON TIME
user11Discnone2011-03-10 20:25
user2rdp-tcp#1212Active62011-03-20 11:29

You can then either ask the users to log off or you can forcibly log them off by typing:

logoff {ID FROM ABOVE} /server:{YOUR SERVER NAME}  

If the query user syntax doesn't work (e.g. Win XP) you can type:

qwinsta /server:{YOUR SERVER NAME}  
Submit / Comment on Hacker News