Updated: April 17, 2012
Applies To: Windows Vista, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows 8
Displays a list of all Remote Desktop Session Host (RD Session Host) servers on the network.
For examples of how to use this command, see Examples.
In Windows Server 2008 R2, Terminal Services was renamed Remote Desktop Services. To find out what's new in the latest version, see What’s New in Remote Desktop Services in Windows Server 2012 in the Windows Server TechNet Library.
Specifies the name that identifies the RD Session Host server.
Specifies the domain to query for terminal servers. You do not need to specify a domain if you are querying the domain in which you are currently working.
Displays the network and node addresses for each server.
Prevents pausing after each screen of information is displayed.
Displays help at the command prompt.
Query termserver searches the network for all attached RD Session Host servers and returns the following information:
The name of the server
The network (and node address if the /address option is used)
To display information about all RD Session Host servers on the network, type:
To display information about the RD Session Host server named Server3, type:
query termserver Server3
To display information about all RD Session Host servers in domain CONTOSO, type:
query termserver /domain:CONTOSO
To display the network and node address for the RD Session Host server named Server3, type:
query termserver Server3 /address