Reset RDP Session Remotely

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

  1. open the command prompt and type in the following command.

qwinsta /server:SERVERIP

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



Prashant Deshpande


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s