Table of contents
TOC
Collapse the table of content
Expand the table of content

remote Desktop Services (Terminal Services) Command Reference

Corey Plett|Last Updated: 11/16/2016

Applies To: Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

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.

CommandDescription
changechanges remote Desktop Session Host (rd Session Host) server settings for logons, COM port mappings, and install mode.
change logonEnables or disables logons from client sessions on an rd Session Host server, or displays current logon status.
change portlists or changes the COM port mappings to be compatible with MS-DOS applications.
change userchanges the install mode for the rd Session Host server.
chglogonEnables or disables logons from client sessions on an rd Session Host server, or displays current logon status.
chgportlists or changes the COM port mappings to be compatible with MS-DOS applications.
chgusrchanges the install mode for the rd Session Host server.
flattempEnables or disables flat temporary folders.
logoffLogs off a user from a session on an rd Session Host server and deletes the session from the server.
msgSends a message to a user on an rd Session Host server.
mstsccreates connections to rd Session Host servers or other remote computers.
qappsrvDisplays a list of all rd Session Host servers on the network.
qprocessDisplays information about processes that are running on an rd Session Host server.
queryDisplays information about processes, sessions, and rd Session Host servers.
query processDisplays information about processes that are running on an rd Session Host server.
query sessionDisplays information about sessions on an rd Session Host server.
query termserverDisplays a list of all rd Session Host servers on the network.
query userDisplays information about user sessions on an rd Session Host server.
quserDisplays information about user sessions on an rd Session Host server.
qwinstaDisplays information about sessions on an rd Session Host server.
rdpsignEnables you to digitally sign a remote Desktop Protocol (.rdp) file.
reset sessionEnables you to reset (delete) a session on an rd Session Host server.
rwinstaEnables you to reset (delete) a session on an rd Session Host server.
shadowEnables you to remotely control an active session of another user on an rd Session Host server.
tsconConnects to another session on an rd Session Host server.
tsdisconDisconnects a session from an rd Session Host server.
tskillEnds a process running in a session on an rd Session Host server.
tsprofCopies the remote Desktop Services user configuration information from one user to another.
© 2017 Microsoft