It??™s the same as
running the QUERY SESSION command from within Terminal Services. The utility outputs the session
name, username, session identifier, session state, session type, and the device used to create the session.
The device information is blank for the local session. This utility uses the following syntax:
QWinSta [sessionname | username | sessionid] [/SERVER:servername]
[/MODE] [/FLOW] [/CONNECT] [/COUNTER]
Notice that you may only specify one of the session identifiers. If you provide a session name,
then you can??™t provide a username as well. The following list describes each of the command line
arguments.
sessionname Specifies the name of the session to query.
username Specifies the name of the user to query.
sessionid Specifies the numeric identifier of the session to query.
WORKING WITH TERMINAL SERVER 435
/SERVER:servername Specifies the terminal server to query. The default is the current server.
/MODE Displays the current line settings. In this case, the output changes to show the session
name, session state, device used to access the system, session type, device baud rate, device parity,
device data bits, and device stop bits.
Pages:
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030