CmdID

CmdID / Commands / query

query termserver

Displays a list of all Remote Desktop Session Host servers on the network. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

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 termserver
query termserver Server3
query termserver /domain:CONTOSO
query 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.