Share via


Query termserver

 

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.

Note

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.

Syntax

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

Parameters

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.

Remarks

  • 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)

Examples

  • 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
    

Additional references

Command-Line Syntax Key

Query

Remote Desktop Services (Terminal Services) Command Reference