This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Displays a list of all Remote Desktop Session Host servers on the network. This command searches the network for all attached Remote Desktop Session Host servers and returns the following information:
Name of the server
Network (and node address if the /address option is used)
Note
To find out what's new in the latest version, seeWhat's New in Remote Desktop Services in Windows Server.
query termserver [<servername>] [/domain:<domain>] [/address] [/continue]| Parameter | Description |
|---|---|
<servername> | Specifies the name that identifies the Remote Desktop Session Host server. |
/domain:<domain> | Specifies the domain to query for terminal servers. You don't 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. |
To display information about all Remote Desktop Session Host servers on the network, type:
query termserverTo display information about the Remote Desktop Session Host server namedServer3, type:
query termserver Server3To display information about all Remote Desktop Session Host servers in domainCONTOSO, type:
query termserver /domain:CONTOSOTo display the network and node address for the Remote Desktop Session Host server namedServer3, type:
query termserver Server3 /addressWas this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?