Microsoft KB Archive/321700

= HOW TO: Display a List of Terminal Servers on the Network by Using the QUERY TERMSERVER Command in Windows 2000 =

PSS ID Number: 321700

Article Last Modified on 11/19/2003

-

The information in this article applies to:


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional

-



This article was previously published under Q321700



IN THIS TASK

 * SUMMARY
 * ** Overview of the QUERY TERMSERVER Command
 * Examples
 * REFERENCES



SUMMARY
This article describes how to use the query termserver command in Windows 2000 Terminal Services to display a list of servers that are running Terminal Services on the network.

You can use the query termserver command to search the network for all of the attached Terminal servers and to return a list of the server names. If you use the /address parameter with this command, you can search for the network addresses and the node addresses of the servers.

back to the top

Overview of the QUERY TERMSERVER Command
The query termserver command uses the following syntax:

query termserver [ ][ /domain: ] [ /address ] [ /continue ]

You can use the following parameters with the query termserver command:
 *  : Use this parameter to specify the name of the Terminal server.
 * /domain: : Use this parameter to specify the domain that you want to query for Terminal servers. If you omit this parameter, the current domain is specified.
 * /address: Use this parameter to include the network address and the node address of each Terminal server in the command output.
 * /continue: Use this parameter to prevent the pause and the &quot;Press any key when ready&quot; message from appearing after each output.

back to the top

Examples
The following examples describe how to use query termserver to display a list of Terminal servers on the network:  To display a list of all Terminal servers in the current domain, type the following line at the command prompt, and then press ENTER:

query termserver

A list of all Terminal servers in the current domain appears in the Cmd window. If the list of servers extends beyond the window, press any key to view the list of servers that does not fit in the window.

 To display the network and node address of a Terminal server named Server8 in the current domain, type the following line at the command prompt, and then press ENTER:

query termserver server8 /address

 To display a list of all Terminal servers in the Corp domain without a pause, type the following line at the command prompt, and then press ENTER:

query termserver /domain:corp /continue

A list of all Terminal servers in the Corp domain appears in the Cmd window.

 To display the network and node address of a Terminal server named Server5 in the Corp domain, type the following line at the command prompt, and then press ENTER:

query termserver server5 /domain:corp /address



back to the top

