Query Termserver / Qappsrv

Display a list of all Terminal server or a Remote Desktop Session Host (RD Session Host) servers on the network.

Syntax
      QUERY TERMSERVER [ServerName] [/domain:Domain] [/address] [/continue]

Key
   ServerName     The RD Session Host server name.

   /domain:Domain The domain to query for terminal servers.
                  default = current domain.

   /address       Display the network and node addresses for each server.

   /continue      Don't pause after each screen of information is displayed.

   /?             Display help.

Qappsrv is a synonym for QUERY TERMSERVER

QUERY TERMSERVER returns the following information:

Examples

Display information about all RD Session Host servers on the network:

C:\> query termserver

Display information about the RD Session Host server named Server64:

C:\> query termserver Server64

Display the network and node address for the RD Session Host server named Server64:

C:\> query termserver Server64 /address

“Big machines are the awe-inspiring cathedrals of the 20th century” - Daniel Kleppner

Related:

Query Process - Display processes (TS/Remote Desktop)
Query Session - Display all sessions (TS/Remote Desktop)
Query User - Display user sessions (TS/Remote Desktop)
TSSHUTDN - Remotely shut down or reboot a terminal server
CHANGE - Change Terminal Server Session properties
MSTSC - Terminal Server Connection (Remote Desktop Protocol)


© Copyright SS64.com 1999-2014
Some rights reserved