Kill remote desktop session

Remote desktop sometimes gives me this error message “The terminal server has exceeded the maximum number of allowed connections.”
It means my previous remote desktop session has been lost or allowed connections are full.
I order to solve this, if you don’t mind losing your unsaved work, you will need to kill a session to open a new one, replace 192.168.1.1 by your server’s IP on the following command.

#Windows key + R
#enter: 
\\192.168.1.1
#Enter admin username and password
#Windows key + R
cmd
#MS DOS prompt
query session /server:192.168.1.1
#Replace x by session ID.
reset session x /server:192.168.1.1

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.