Applies To: Windows Vista,Windows Server 2008

The following is a list of Terminal Services command-line tools.

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.

Chgusr

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.

Rdpsign

Enables you to digitally sign a Remote Desktop Protocol (.rdp) file.

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.