Query process
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 [{ * | ProcessID | UserName | SessionName | /id:SessionID | Program.exe}] [/server:ServerName]
mstsc.exe /edit"ConnectionFile"
mstsc.exe /migrate
Parameters
*
Lists the processes for all sessions.
ProcessID
Specifies the numeric ID identifying the process you want to query.
UserName
Specifies the name of the user whose processes you want to list.
SessionName
Specifies the name of the session whose processes you want to list.
/id:SessionID
Specifies the ID of the session whose processes you want to list.
/Program.exe
Specifies the name of the program whose processes you want to query. The .exe extension is required.
/server:ServerName
Specifies the terminal server whose processes you want to list. If unspecified, the server where you are currently logged on is used.
Remarks
Administrators have full access to all query process functions.
Examples
To display information about the processes being used by all sessions, type:
query process *
To display information about the processes being used by session ID 2, type:
query process /ID:2
|