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

Windows 7 Hero Logo

In today’s Ask the Admin, I’ll show you how to quickly get a list of users connected to a server via Remote Desktop (RDP).

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 on Server 2012

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 from the Server 2012:

  • 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 Session column. The instructions above also work in Windows 8.1 and 10.

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.

FAQs

How can I customize the Server 2012 desktop background for my organization?

You can modify the Server 2012 all users desktop background through Group Policy Editor by navigating to User Configuration > Administrative Templates > Desktop > Desktop, where you can set a standard wallpaper for all users accessing the system.

Can I restrict certain applications from appearing on the Server 2012 all users desktop?

Yes, using Group Policy Management, you can control which applications appear on the Server 2012 all users desktop by configuring application restrictions and start menu settings for all users simultaneously.

How do I implement shortcuts on the Server 2012 all users desktop that persist across sessions?

To create persistent shortcuts on the Server 2012 all users desktop, place them in the C:\Users\Public\Desktop folder, which will make them available to all users who log into the system.

What are the best practices for managing Server 2012 all users desktop permissions?

Implement role-based access control, use security groups for permissions management, and regularly audit the Server 2012 all users desktop access to ensure proper security and user experience.

How can I troubleshoot performance issues affecting the Server 2012 all users desktop environment?

Monitor Resource Monitor, check Event Viewer logs, verify profile loading times, and use Performance Monitor to track Server 2012 all users desktop performance metrics and identify bottlenecks.