Posts Tagged ts

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:

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.

That’s It! You can log on now!

, , , , , , ,

No Comments