Windows Server 2012 R2: Get a list of active Remote Desktop Users
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.
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.
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 Session column. The instructions above also work in Windows 8.1 and 10.
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
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.
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.
More in Windows Server
Microsoft to Fix Windows Bug Breaking Wi-Fi hotspots After Installing Latest Patch Tuesday Update
Jun 17, 2022 | Rabia Noureen
Microsoft Confirms Windows Server Backup Issues in This Month's Patch Tuesday Updates
Jun 16, 2022 | Rabia Noureen
Microsoft Acknowledges Office Zero-Day Flaw Affecting Windows Diagnostic Tool
May 31, 2022 | Rabia Noureen
Microsoft Releases Out-Of-Band Patches to Fix Windows AD Authentication Issues
May 20, 2022 | Rabia Noureen
CISA Warns Windows Admins Against Applying May Patch Tuesday Updates on Domain Controllers
May 17, 2022 | Rabia Noureen
Microsoft Confirms May 2022 Patch Tuesday Updates Cause AD Authentication Issues
May 12, 2022 | Rabia Noureen
Most popular on petri