This chapter focuses on the GUI tools for managing Remote Desktop Session Host.

Study and Lecture Notes

Explore the Remote Desktop Services Manager

  1. Layout: Three panes: Left(servers and groups), center pane(Users, sessions, processes tabs), Right pane(Actions pane).
  2. Center pane:
    • Users tab:
      Server The name of the RD Session Host server to which the user is logged on.
      User The name of the user account that is logged on to the RD Session Host server.
      Session The session for the user.
      ID The numeric ID that identifies the session to the RD Session Host server.
      State The status of a session:Active, disconnected, reset or idle.  For information about session states, see View Sessions Running on an RD Session Host Server.
      IdleTime The number of minutes that the session has been idle.
      LogOnTime The date and time at which the user logged on, if applicable.
    • Sessions tab:
      There are 3 types of sessions:

      • Console: session that you connect to if you log on to the physical console.
      • Services: session that contains system processes on the RD session Host.
      • Listener: session that listens for and accept new client connections.
        Column Description
        Server The RD Session Host server with which the session is associated.
        Session The session running on the RD Session Host server.
        User The user account that is associated with the session.
        ID The numeric ID that identifies the session to the RD Session Host server.
        State The status of a session. For more information, see Session states.
        Type The type of remote desktop client using the session.
        ClientName The name of the client computer using the session, if applicable.
        IdleTime The number of minutes that have elapsed since the last keyboard or mouse input to a session.
        LogOnTime The date and time at which the user logged on, if applicable.
        Comment Additional information about the session, such as its location. This field is optional.
    • Processes tab:
      Column Description
      Server The RD Session Host server with which the process is associated.
      User The user account that is associated with the process.
      Session The session on the RD Session Host server that is associated with the process.
      ID The numeric ID that identifies the session to the RD Session Host server.
      PID The numeric ID that identifies the process to the RD Session Host server.
      Image The executable program that created the process on the RD Session Host server.

Useful command:

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

Syntax for these are : tskill processid |processname |[/server:server name] [ID:sessionid][/v][/a]

processid Process ID for the process to be terminated.
processname Process name to be terminated.
/SERVER:servername Server containing processID (default is current).
/ID or /A must be specified when using processname and /SERVER
/ID:sessionid End process running under the specified session.
/A End process running under ALL sessions.
/V Display information about actions being performed.