Command Line Hack for Maxed Out Remote Desktop Connections

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

If you’ve got an unreliable internet connection, it’s possible to build up remote desktop connections that don’t time out when they should, putting you in a rough position.  If you have access to another server machine, you can use the following commands to view and reset active connections.

> query session /server:servername

> reset session [ID] /server:servername

More information at: Command Line Hack for: “Terminal Server Has Exceeded the Maximum Number of Allowed Connections”

Update: In the syntax ‘/server:servername’  The ‘server’ is explicitly the text ‘server’.  For instance, if my server is at, the command would be: 

> query session /server:

> reset session 2 /server:

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