How do I get a list of connected remote desktop users on Microsoft Windows Server 2012?

Windows Server 2012 R2: Get a list of active Remote Desktop Users

Short answer.
Open the task manager and go to users and you will have the ability to disconnect or sign out the user.

Long Answer

Whether you have a fully-fledged Remote Desktop Services (RDS) deployment, or just want to see which administrators are managing a server, there are several ways to view the users currently connected via RDP.

If you have a RDS deployment on Windows Server 2012 R2, it’s worth noting that there’s no Remote Desktop Services Manager management console in Windows Server 2012 and later. Server Manager displays some useful information about RDS and PowerShell can also be used to install, configure and manage RDS.

 

Task Manager

 

The Task Manager’s Users tab gives a list of currently logged in users, but by default doesn’t indicate whether they are logged in at the terminal or remotely. That can be easily rectified by adding the session column to the view.

 

Using Task Manager to view logged in users (Image Credit: Russell Smith)

Using Task Manager to view logged in users (Image Credit: Russell Smith)

 

Log in to Windows Server 2012 R2 and follow the instructions below to view the active remote users:

 

  • Right click the taskbar and select Task Manager from the menu.
  • Switch to the Users tab.
  • Right click one of the existing columns, such as User or Status, and then select Session from the context menu.

 

In Task Manager, you’ll now be able to see a list of users and if they’re logged in using RDP, it will be indicated in the Sessioncolumn. The instructions above also work in Windows 8.1 and 10.

 

Sponsored

 

quser

 

The same information can also be obtained by simply running quser from the command line. If you want to query users on a remote computer, just add the /SERVER parameter followed by the name of the remote server.

 

quser /server contososrv1

 

Using quser to get information about logged in remote users (Image Credit: Russell Smith)

Using quser to get information about logged in remote users (Image Credit: Russell Smith)

 

qwinsta

 

Similar to quser, qwinsta displays users logged in to a RD Session Host, along with information about whether at the console or via an RDP session.

 

Listing logged in users with qwinsta (Image Credit: Russell Smith)

Listing logged in users with qwinsta (Image Credit: Russell Smith)

 

Get-RDUserSession

 

If you have a RDS deployment and need more information, you can run the Get-RDUserSession cmdlet to get information about connected users, session IDs and host servers. You can also see users connected via a specific connection broker:

 

Get-RDUserSession -ConnectionBroker rdp1.ad.contoso.com

 

In this article, I showed you how to view the users logged in remotely to Windows Server 2012 R2 and RDS deployment. Keep a look out on Petri for some more detailed articles on installing and configuring RDS deployments using PowerShell in Windows Server 2012 R2.

credits for the long version to https://www.petri.com/windows-server-2012-r2-get-list-active-remote-desktop-users

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How do I change my remember password options in Google Chrome

Manage your website passwords This article applies to the Google Chrome browser on Windows,...

Change time is Gmail

Correct Your Gmail Time Zone To set your Gmail time zone: Click the gear in your Gmail's...

How to speed up Windows XP use at your own risk

Warning: occasionally people break their PC badly by using this list of suggestions. Usually...

How to run cmd in escalated mode with admin rights to modify firewall

a solution: runas /user:administrator@domainname.local cmd then in the resulting command...

How do I enable auto login in Windows

This article describes how to configure Windows to automate the logon...