This utility falls more in line with Microsoft??™s latest strategy for working with Terminal Server, so
you should use it whenever possible in new scripts and batch files. The following sections tell you
about the process, session, user, and Terminal Server (TermServer) modes.
PROCESS
The PROCESS mode helps you discover information about Terminal Server processes. Every application
creates a process when it runs, so this information focuses on the applications that Terminal
498 CHAPTER 20 MANAGING SYSTEM USERS
Server is running. The output information includes the username, session name, session identifier
(ID), Process Identifier (PID), and image (application) name. This mode uses the following syntax:
QUERY PROCESS [* | processid | username | sessionname | /ID:nn |
programname] [/SERVER:servername]
The following list describes each of the command line arguments.
* Displays all of the visible processes.
processid Displays process information for the specified PID.
username Displays all of the processes belonging to a particular user. You??™ll always find processes
belonging to your personal account, local account, network service account, and local service
account.
Pages:
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174