Managing Terminal Services from the Command Line
In addition to the tools in Terminal Services Manager, there are quite a few command-line tools for working with Terminal Services. These commands can be divided into two categories:
Gathering information
Controlling user sessions
Gathering Terminal Services Information
Several commands are available for gathering Terminal Services information from the command line including the following:
QUERY PROCESS [* | ProcessId | UserName | SessionName | /ID:SessionId | Program-Name] [/Server:ServerName]—Displays information about processes being run in Terminal Services sessions on the server
QUERY SESSION [SessionName | UserName | SessionId] [/Server:ServerName]—Displays information about Terminal Services sessions ...
Get Microsoft® Windows Server™ 2003 Inside Out now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.