How can I view active remote connections (RDP) to a Windows server?

Solution 1:

You can type "Query User" into a command prompt on the remote machine to get a very quick look

Solution 2:

Run the "qwinsta" command on the server, or with the /server:servername switch.

>qwinsta /?
Display information about Remote Desktop Sessions.

QUERY SESSION [sessionname | username | sessionid]
              [/SERVER:servername] [/MODE] [/FLOW] [/CONNECT] [/COUNTER] [/VM]

  sessionname         Identifies the session named sessionname.
  username            Identifies the session with user username.
  sessionid           Identifies the session with ID sessionid.
  /SERVER:servername  The server to be queried (default is current).
  /MODE               Display current line settings.
  /FLOW               Display current flow control settings.
  /CONNECT            Display current connect settings.
  /COUNTER            Display current Remote Desktop Services counters informati
on.
  /VM                 Display information about sessions within virtual machines
.

You can also reset an RDP session with the "rwinsta" command:

>rwinsta /?
Reset the session subsytem hardware and software to known initial values.

RESET SESSION {sessionname | sessionid} [/SERVER:servername] [/V]

  sessionname         Identifies the session with name sessionname.
  sessionid           Identifies the session with ID sessionid.
  /SERVER:servername  The server containing the session (default is current).
  /V                  Display additional information.

Solution 3:

You can see in the Task manager users Tab


Solution 4:

the tsadmin.msc command will give you a nice GUI with information and control over windows RDP sessions