Terminal Server Command Line tools in Windows Server 2008

Command

Description

Change

Changes Terminal Server settings for logons, COM port mappings, and install mode.

Change logon

Enables or disables logons from client sessions on a Terminal Server, or displays current logon status.

Change port

Lists or changes the COM port mappings to be compatible with MS-DOS applications.

Change user

Changes the install mode for the Terminal Server.

Chglogon

Enables or disables logons from client sessions on a Terminal Server, or displays current logon status.

Chgport

Lists or changes the COM port mappings to be compatible with MS-DOS applications.

Chguser

Changes the install mode for the Terminal Server.

Flattemp

Enables or disables flat temporary folders.

Logoff

Logs off a user from a session on a Terminal Server and deletes the session from the server.

Msg

Sends a message to a user on a Terminal Server.

Mstsc

Creates connections to Terminal Servers or other remote computers.

Qappsrv

Displays a list of all Terminal Servers on the network.

Qprocess

Displays information about processes that are running on a Terminal Server.

Query

Displays information about processes, sessions, and Terminal Servers.

Query process

Displays information about processes that are running on a Terminal Server.

Query session

Displays information about sessions on a Terminal Server.

Query termserver

Displays a list of all Terminal Servers on the network.

Query user

Displays information about user sessions on a Terminal Server.

Quser

Displays information about user sessions on a Terminal Server.

Qwinsta

Displays information about sessions on a Terminal Server.

Reset session

Enables you to reset (delete) a session on a Terminal Server.

Rwinsta

Enables you to reset (delete) a session on a Terminal Server.

Shadow

Enables you to remotely control an active session of another user on a Terminal Server.

Tscon

Connects to another session on a Terminal Server.

Tsdiscon

Disconnects a session from a Terminal Server.

Tskill

Ends a process running in a session on a Terminal Server.

Tsprof

Copies the Terminal Services user configuration information from one user to another.

The
command line tools in the following table are not used for Terminal Services in
Windows Server 2008.

Table 5 - Deprecated Command
Line Utilities

Command

Function

tsshutdn

Shuts down a Terminal Services server.

register

Registers a program so that it has special execution characteristics.

cprofile

Removes user-specific file associations from a user's profile.

Since
tsshutdn.exe is not included with Windows Server 2008, the recommended method
for shutting down or restarting a Windows Server 2008 Terminal Server is by
using Shutdown.exe.