O'Reilly logo

Microsoft® Windows Server™ 2003 Inside Out by William R. Stanek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required