query termserver
Displays a list of all Remote Desktop Session Host servers on the network. Windows commands reference
On Windows
Windows
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, see What's New in Remote Desktop Services in Windows Server.
query termserver [<servername>] [/domain:<domain>] [/address] [/continue]query termserverquery termserver Server3query termserver /domain:CONTOSOquery termserver Server3 /address
<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./addressDisplays the network and node addresses for each server./continuePrevents pausing after each screen of information is displayed./?Displays help at the command prompt.