Partager via


Remote Desktop Services (Terminal Services) Command Reference

 

Applies To: Windows Vista, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows 8

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

Note

In Windows Server 2008 R2, Terminal Services was renamed Remote Desktop Services. To find out what's new in the latest version, see What’s New in Remote Desktop Services in Windows Server 2012 in the Windows Server TechNet Library.

Command

Description

Change

Changes Remote Desktop Session Host (RD Session Host) server settings for logons, COM port mappings, and install mode.

Change logon

Enables or disables logons from client sessions on an RD Session Host 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 RD Session Host server.

Chglogon

Enables or disables logons from client sessions on an RD Session Host 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 RD Session Host server.

Flattemp

Enables or disables flat temporary folders.

Logoff

Logs off a user from a session on an RD Session Host server and deletes the session from the server.

Msg

Sends a message to a user on an RD Session Host server.

Mstsc

Creates connections to RD Session Host servers or other remote computers.

Qappsrv

Displays a list of all RD Session Host servers on the network.

Qprocess

Displays information about processes that are running on an RD Session Host server.

Query

Displays information about processes, sessions, and RD Session Host servers.

Query process

Displays information about processes that are running on an RD Session Host server.

Query session

Displays information about sessions on an RD Session Host server.

Query termserver

Displays a list of all RD Session Host servers on the network.

Query user

Displays information about user sessions on an RD Session Host server.

Quser

Displays information about user sessions on an RD Session Host server.

Qwinsta

Displays information about sessions on an RD Session Host server.

Rdpsign

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

Reset session

Enables you to reset (delete) a session on an RD Session Host server.

Rwinsta

Enables you to reset (delete) a session on an RD Session Host server.

Shadow

Enables you to remotely control an active session of another user on an RD Session Host server.

Tscon

Connects to another session on an RD Session Host server.

Tsdiscon

Disconnects a session from an RD Session Host server.

Tskill

Ends a process running in a session on an RD Session Host server.

Tsprof

Copies the Remote Desktop Services user configuration information from one user to another.