This is more of a future reference post, but if you have the same problem we sometimes face with lots of developers logging into the same remote win2003 server, where both terminal sessions are taken. And sometimes both are taken by the developer who’s just gone on holidays! So then you either have to drag you butt down to the server room to kill sessions from the terminal or even worse ring up the data centre for a hosted box.

Well fret no more! you can run the following commands easily to kill any remote sessions to a box from a winXP (and vista i presume?) or parallels for the macl33t

1: Open windows command prompt

2: to view current connections: qwinsta /server:myserver

This results in an output of

SESSIONNAME USERNAME ID STATE TYPE DEVICE
console administrator 0 Active wdcon
rdp-tcp 65536 Listen rdpwd
rdp-tcp#51 administrator 2 Active rdpwd

3: kill a session by: rwinsta [sessionID] /server:myserver

i.e. rwinsta 2 /server:myserver