How can I check if a user is logged on via Terminal Server?
May 8, 1999
A. Starting the Terminal Services Manager MMC snap-in (Start -Programs - Administrative Tools - Terminal Services Manager) will list userprocesses by machine but this may be cumbersome if a large number of terminalservers are running. It can also be done with the following command:
query user [] [/server:]
For example
C:> query user
USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME
>administrator console 0 Active . 09/05/9918:19
savillj rdp-tcp#1 1 Active 10 09/05/9914:23
The above lists all users.
You can also check what the user is running with the QPROCESS command:
C:> qprocess
To check who is running a certain program (e.g. winword.exe)
C:> qprocess
will list all users running the passed program.
About the Author
You May Also Like