Query session
Displays information about sessions on a terminal server. The list includes information not only about active sessions but about other sessions that the server runs.
Syntax
query session [{SessionName | UserName | SessionID}] [/server:ServerName] [/mode] [/flow] [/connect] [/counter]
Parameters
SessionName
The name of the session you want to query.
UserName
The name of the user whose sessions you want to query.
SessionID
The ID of the session you want to query.
/server:ServerName
Identifies the terminal server to query. The default is the current server.
/mode
Displays current line settings.
/flow
Displays current flow-control settings.
/connect
Displays current connect settings.
/counter
Displays current counters information, including the total number of sessions created, disconnected, and reconnected.
/?
Displays help at the command prompt.
Remarks
A user can always query the session to which the user is currently logged on. To query other sessions, the user must have Query Information access permission.
Examples
To display information about all active sessions on server SERVER2, type:
query session /server:SERVER2
To display information about active session MODEM02, type:
query session MODEM02
|