TechBubbles Microsoft Technology BLOG

Remote Desktop Sessions from Commandline

You will commonly see the following error message when you try to connect windows 2003 server using RemoteDesktopConnection.

“The terminal server has exceeded the maximum of allowed connections ”



You can disconnect the other remotely logged in users if you are a domain Admin user. Most of the users some time not even be using the sessions.

To see the list of remote sessions in the command window, type the following command.

qwinsta /server:<ServerIP>


qwinsta /server:

Remote sessions list

Use the following command line to disconnect the remote session

rwinsta /server: <ServerIP> <SessionID>


rwinsta /server: 2

The user who disconnected from the session will see the following message



The remote session was disconnected because your session was logged off at the remote computer. Your administrator or another user might have ended your connection.

Share this post :

About the author

Kalyan Bandarupalli

My name is kalyan, I am a software architect and builds the applications using Microsoft .NET technologies. Here I am trying to share what I feel and what I think with whoever comes along wandering to Internet home of mine.I hope that this page and its contents will speak for me and that is the reason I am not going to say anything specially about my self here.

Add Comment

TechBubbles Microsoft Technology BLOG

Follow me


Tag Cloud