Home
> Commands N-Z
> Commands Q
QUERY PROCESS
Description
| Syntax
| Parameters
| Switches
| Related
| Notes
| Examples
| Errorlevels
| Availability
Displays information about processes running on a
terminal server. You can use this command to find out
which programs a specific user is running, and also
which users are running a specific program.
Syntax
QUERY PROCESS
/?
QUERY PROCESS
[{*
| process_id
| user_name
| session_name
| /id:nn
| program_name}]
[/server:server_name]
[/system]
Parameters
- *
(NTXP)
- Lists the processes for all sessions.
- If omitted, displays only the processes belonging
to the current user.
- process_id
(NTXP)
- Specifies the numeric ID identifying the process
you want to query.
- program_name
(NTXP)
- Specifies the name of the program whose processes
you want to query. The .exe extension is required.
- If omitted, displays only the processes belonging
to the current user.
- session_name
(NTXP)
- Specifies the name of the session whose processes
you want to list.
- If a session is specified, it must identify an
active session. You can use wildcards to identify the
process.
- If omitted, displays only the processes belonging
to the current user.
- user_name
(NTXP)
- Specifies the name of the user whose processes
you want to list.
- If omitted, displays only the processes belonging
to the current user.
Switches
- /?
(NTXP)
- Displays help.
- /id:nn
(NTXP)
- Specifies the ID of the session whose processes
you want to list.
- If omitted, displays only the processes belonging
to the current user.
- /server:server_name
(NTXP)
- Specifies the terminal server whose processes you
want to list. If omitted, the server where you
are currently logged on is used.
- /system
(NTXP ONLY)
- Specifies that current information about system
processes is displayed. If you do not want system
processes to be displayed, do not use this switch.
Related
none.
Notes
Administrators have full access to all query process
functions.
When query process returns information, a less than
(<) symbol is displayed before each process belonging
to the current session.
Examples
none.
Errorlevels
none.
Availability
- External
-
- DOS
-
none
- Windows
-
none
- Windows NT
-
NTXP
NT2003
Last Updated: 2003/07/28
Direct corrections or suggestions to:
Rick Lively