Qprocess (query process) command in Windows

(Applies to Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012)

(Applies to Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012)

The qprocess command displays information about processes running on the Remote Desktop Session Host server (RD Session Host).

Attention

This command is similar to the query process command .

The query process command

(Applies to Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012)

The query process displays information about processes running on the Remote Desktop Session Host (RD Session Host) server.You can use this command to find out which program a particular user is running and which user is running a particular program.To learn more about how to use this command, see the example section below.

Syntax command query process

 query process [* | | | | / id: | ] [/ server:] 

Refer to the query process command

Parameters

Describe

*

List processes for all sessions (sessions).

 

Specify the ID number that identifies the process you want to query.

 

Specify the name of the user who owns the process you want to list.

 

Specify the name of the session whose process you want to list.

/ id:

Specify the ID of the session with the process you want to list.

 

Specify the name of the program that has the processes you want to query..Exe extension is required.

/ server:

Specify the RD Session Host server to have the processes you want to list.If you do not specify the RD Session Host server, the server you are currently logged in to will be used by default.

/?

Show help at thecommand prompt.

Explain the query process

- Administrators have full access to all query processing functions.

- If you do not specify parameters , / id:, or * , the query process command will only display processes belonging to the current user on the system.

- If a session is specified, it must be defined as an active session.

- The query process command returns the following information:

  1. User owns the process.
  2. Session owned process.
  3. Session ID
  4. Name of the process.
  5. Process ID.

When the query process returns information, a larger sign symbol (>) will be displayed before each process belongs to the current session.

For example, the query process command

To display information about processes that are being used by all sessions, enter:

 query process * 

To display information about the processes being used in a session with an ID of 2, enter:

 query process / ID: 2 

See more:

  1. Prnport command in Windows
  2. Prnmngr command in Windows
  3. The prnjobs command in Windows
  4. Prndrvr command in Windows
3.9 ★ | 9 Vote