Friday, July 26, 2013

How to reset a terminal services session remotely

I forgot to log off after using a remote session through Terminal Services and then i 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:
SESSIONNAME USERNAME ID STATE TYPE
console 0 Conn wdcon
rdp-tcp 65536 Listen rdpwd
rdp-tcp#8 Administrator 7 Active rdpwd
rdp-tcp#9 User 8 Active rdpwd

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.

No comments: