Article ID: 186592
Article Last Modified on 2/22/2007
query [appservers | object | process | session | user] [/?] /? (help)
Displays the syntax for the command and information about the command's options.
Displays the available application servers on the network.
Identifies an application server.
Displays application server information for the specified domainname. Defaults to the current domain.
Displays the network and node addresses for each server.
Pauses after each screen of information until a key is pressed.
Displays the syntax for the command and information about the command's options.
C:\>query appserversAPPLICATION SERVERfast_eddieengineeringaccess_1 *brand_xThe asterisk (*) indicates the current servername. APPLICATION SERVER identifies the servername.
query appservers
query appservers fasteddie
query appservers /domain:system
query appservers NABBY /address
Displays information about the system's Object Manager Namespace.
Identifies the object type to query.
Displays devices in the \DosDevices namespace in a modified format.
Displays the syntax for the command and information about the command's options.
query object \Driver
query object /device
Displays information about processes.
Identifies a process.
Identifies the name of the user whose processes you want to display.
Identifies the name of the session. The name was created by the system administrator when the session was configured.
Identifies the session whose processes you want to display.
Identifies the name of the program whose processes you want to display. The .exe extension is required.
The Terminal Server to be queried. Otherwise, the current Terminal Server is used.
Displays process information for system processes.
Displays the syntax for the command and information about the command's options.
The user that owns the process. The session that owns the process. The ID of the session. The process name. The process state. The ID of the process.The following is an example for query process:
C:>query process USERNAME SESSION ID STATE PID >edj rdp-tcp#002 0 wait 353 progman.exe >edj rdp-tcp#002 0 wait 49 cmd.exe >edj rdp-tcp#002 0 wait 139 query.exe >edj rdp-tcp#002 0 run 375 qprocess.exeThe > character identifies the current user. Session identifies the session where the user is logged on the system. ID specifies the ID of the session.
query process 8
query process EDDIEJ
query process rdp-tcp#002
query process /id:4
query process Netclient.exe
query process *
query process * /system
Displays information about sessions.
Identifies the name of the session. The name was created by the system administrator when the session was configured.
Identifies the user of the session.
Specifies the ID of the session.
The Terminal Server to be queried. Otherwise, the current Terminal Server is used.
Displays the current line settings.
Displays the current flow control settings.
Displays the current connect settings.
Displays the syntax for the command and information about the command's options.
C:>query session SESSION USERNAME ID STATE TYPE DEVICE >console administrator 0 active rdp-tcp#003 eddiej 1 active rdp-tcp 2 listen rdp-tcp 3 listen rdp-tcp 4 idle 5 idleThe > character identifies the current session. Session specifies the session name. Username identifies the name of the user connected at the session, if any. ID identifies the ID of the session connected to the system, if any. State provides information on the current state of the session and can be any of the following:
Active. The session is connected and active.
Conn. The session is connected. No user is logged on.
ConnQ. The session is in the process of connecting. If this state
continues, it indicates a problem with the connection.
Shadow. The session is shadowing another session.
Listen. The session is ready to accept a client connection.
Disc. The session is disconnected.
Idle. The session is initialized.
Down. The session is down, indicating the session failed to initialize correctly.
Init. The session is initializing.
Type indicates the session type. Device is the device name assigned to the
session (not present for the console or network-connected sessions). The
comment following the session information is from the profile.
query session /server:ACCTG
query session MODEM02
Displays information about users who are logged on the system.
Identifies the user.
Identifies the name of the session. The name was created by the system administrator when the session was configured.
Specifies the ID of the session.
The Terminal Server to be queried. Otherwise, the current Terminal Server is used.
Displays the syntax for the command and information about the command's options.
The name of the user
The name of the session
The ID that identifies the session
The state of the session (active or disconnected)
The idle time-the time since a keystroke or mouse movement was received
at the session
The logon time, when the user logged on the system
The following is an example for query user:
C:\>query user USERNAME SESSION ID STATE IDLE TIME LOGON TIME admin console 0 active 55 10/07/94 17:30 >edj rdp-tcp#004 4 active 10/10/94 09:03
query user
query user EDJ /server:WF06
query user rdp-tcp#001
Keywords: kbinfo KB186592