Export (0) Print
Expand All

Remote Desktop Services (Terminal Services) Command Reference

Updated: August 15, 2011

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

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

noteNote
In Windows Server 2008 R2, Terminal Services was renamed Remote Desktop Services. To find out what's new in this version, see What’s New in Remote Desktop Services on the Windows Server TechCenter.

 

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft