For more information about the Terminal Services query commands, see the following topics:
Query process
Query session
Query termserver
Query user