Many of the actions that you perform in Remote Desktop Services Manager can also be performed by using command-line tools.

The following is a list of some of the actions that you perform in Remote Desktop Services Manager and the command-line tool that can be used to accomplish the same action.

For more information about command-line tools for Remote Desktop Services, see the Remote Desktop Services Technical Reference (https://go.microsoft.com/fwlink/?LinkId=138135).

Action in Remote Desktop Services Manager Command-line tool

Log off a user from a session on a Remote Desktop Session Host (RD Session Host) server and delete the session from the server.

logoff

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

msg

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

qprocess

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

query

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

query process

Display information about sessions on an RD Session Host server.

query session

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

query user

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

quser

Display information about sessions on an RD Session Host server.

qwinsta

Reset (delete) a session on an RD Session Host server.

reset session

Reset (delete) a session on an RD Session Host server.

rwinsta

Remotely control an active session of another user on an RD Session Host server.

shadow

Connect to another session on an RD Session Host server.

tscon

Disconnect a session from an RD Session Host server.

tsdiscon

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

tskill