Query user


Applies To: Windows Server 2008,Windows Vista

Displays information about user sessions on a terminal server.

For examples of how to use this command, see Examples.

Syntax


Copy Code

query user [<UserName> | <SessionName> | <SessionID>] [/server:<ServerName>]

Parameters

Parameter

Description

<UserName>

Specifies the logon name of the user that you want to query.

<SessionName>

Specifies the name of the session that you want to query.

<SessionID>

Specifies the ID of the session that you want to query.

/server:<ServerName>

Specifies the terminal server that you want to query. Otherwise, the current terminal server is used.

/?

Displays help at the command prompt.

Remarks

Examples


Copy Code

query user


Copy Code

query user USER1 /server:SERVER1

Additional references

Command-Line Syntax Key

Query

Terminal Services Command Reference