List logged on users command line

Most geeks prefer a command line manner to perform operational activities. The commands below allow listing logged on users for a particular server, as well as the ability to kick them. This can be handy when you receive a “The Terminal server exceeded has exceeded the maximum number of allowed connections”-notification.

C:\Users\ruben renders>qwinsta /SERVER:SAMPLE
SESSIONNAME USERNAME ID STATE TYPE DEVICE
0 Disc rdpwd
rdp-tcp 65536 Listen rdpwd
console 4 Conn wdcon
User01 2 Disc rdpwd
rdp-tcp#26 User02 1 Active rdpwd

C:\Users\ruben renders>rwinsta 2 /SERVER:SAMPLE

Continue reading