Query user
Displays information about user sessions on a terminal server.
Syntax
query user [{UserName | SessionName | SessionID}] [/server:ServerName]
Parameters
UserName
Specifies the logon name of the user you want to query.
SessionName
Specifies the name of the session you want to query.
SessionID
Specifies the ID of the session you want to query.
/server:ServerName
Specifies the terminal server you want to query. Otherwise, the current terminal server is used.
/?
Displays help at the command prompt.
Remarks
You can use this command to find out if a specific user is logged on to a specific terminal server.
Examples
To display information about all users logged on the system, type:
query user
To display information about the user USER1 on server SERVER1, type:
query user USER1 /server:SERVER1
|