|
|
Monday, June 14, 2010
Must be the Microsoft Day - Two Commands for Administering Remote Windows - qwinsta and rwinsta
You can querry a server with the qwinsta command
C:\Documents and Settings\dpitts>qwinsta /server:servername.domainname.tld
SESSIONNAME USERNAME ID STATE TYPE DEVICE
console 0 Conn wdcon
rdp-tcp 65536 Listen rdpwd
rdp-tcp#118 Administrator 4 Active rdpwd
rdp-tcp#124 dpitts 5 Active rdpwd
change the q to an r and put the ID after the server name and you can remove that session
C:\Documents and Settings\dpitts>rwinsta /server:servername.domainname.tld 5
So the above command killed my session.