We regularly used to receive the call from developers that they are not able to take remote of local servers and the message they used to receive is the maximum number of connections error message as below
The terminal server has exceeded the maximum number of allowed connections
Traditionally we used to take the remote of that server with console or admin option and logoff the disconnected login
WE can do the same task remotely from our system (with admin rights) as below
- open the command prompt and type in the following command.
e.g. qwinsta /server:knowitvssserver
In the above sceenshot we can clearly see an Active RDP session with the ID 2 which belongs to the user Admin. In order to disconnect that user we are going to use the session ID.
2) Use the following command line to release the remote session.
Reset session <id> /server:Servername / IP
e.g. reset session 2 /server:knowitvssserver
We can confirm if the user is really disconnected. Just type in the qwinsta command in proper format as above