sessionname Displays all of the processes running in a particular session. The two default
sessions are console and services.
/ID:nn Displays all of the processes running within a particular session. You??™ll always see two
sessions. Session 0 works with the services sessions and session 1 works with the console sessions.
programname Displays all of the sessions associated with a particular program name. If multiple
people are using the same application, you??™ll see one session for each user.
/SERVER:servername Enumerates the specified processes on a particular Terminal Server. If
you don??™t have rights to access the Terminal Server, you??™ll see a security error message. If the
server isn??™t running Vista, Windows Server 2008 Full version, or Server Core, you??™ll likely see an
???Error Enumerating Processes??? message.
SESSION
The SESSION mode tells you about the sessions running on Terminal Server. Depending on what
command line options you use, you can obtain a wealth of session information. The default settings
provide the session name, username, session identifier, session state, connection type, and connection
device. This mode uses the following syntax:
QUERY SESSION [sessionname | username | sessionid] [/SERVER:servername]
[/MODE] [/FLOW] [/CONNECT] [/COUNTER]
The following list describes each of the command line arguments.
Pages:
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175