Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Query termserver

Published: April 17, 2012

Updated: April 17, 2012

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

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.

noteNote
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.

query termserver [<ServerName>] [/domain:<Domain>] [/address] [/continue]

 

Parameter Description

<ServerName>

Specifies the name that identifies the RD Session Host server.

/domain:<Domain>

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.

/address

Displays the network and node addresses for each server.

/continue

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:

    query termserver
    
  • 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
    

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.