Partager via


Query

Applies To: Windows Server 2008, Windows Server 2008 R2, Windows Vista

Displays information about processes, sessions, and Remote Desktop Session Host (RD Session Host) servers.

Note

In Windows Server 2008 R2, Terminal Services was renamed Remote Desktop Services. To find out what's new in this version, see What’s New in Remote Desktop Services on the Windows Server TechCenter.

Syntax

query process
query session
query termserver
query user

Parameters

Parameter Description

Query process

Displays information about processes that are running on an RD Session Host server.

Query session

Displays information about sessions on an RD Session Host server.

Query termserver

Displays a list of all RD Session Host servers on the network.

Query user

Displays information about user sessions on an RD Session Host server.

Additional references

Command-Line Syntax Key

Remote Desktop Services (Terminal Services) Command Reference