How can I check if a user is logged on via Terminal Server?

John Savill

May 8, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today

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

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like