How to reset a terminal services session remotely

Probably all of you have run into the problem where a colleague forgot to log off after using a remote session through Terminal Services and then you get the beautiful ‘there are too many users connected’ error.

Probably this colleague already left for the day and you’re not able to contact him, so the best option here is to reset his session. In order to do this go to Command Prompt, and type:

qwinsta /server:xxx.xxx.xxx.xxx

xxx.xxx.xxx.xxx being your server IP address.

It should return a result table like this:

SESSIONNAMEUSERNAMEIDSTATETYPE
console0Connwdcon
rdp-tcp65536Listenrdpwd
rdp-tcp#8Administrator7Activerdpwd
rdp-tcp#9User8Activerdpwd

Choose the ID of the session that you would like to end and type:

rwinsta /server:xxx.xxx.xxx.xxx n

n being the session ID you want to reset.

That’s It! You can log on now!

Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+

Leave a Reply