Remote Desktop Protocol (RDP) is widely used by system administrators, IT engineers, support teams, and enterprises to remotely manage Windows servers and client systems. In multi-user environments such as Windows Server 2016, 2019, 2022, and Windows 11, administrators often need to determine which user account is currently logged into an RDP session.
One common challenge is that the RDP connection bar at the top of the screen only displays the server or host name, not the username of the connected session. This can create confusion when multiple administrators are connected simultaneously.
This article explains various methods to identify logged-in RDP users, display usernames inside sessions, and improve RDP session management in enterprise environments.
When connecting to a remote machine using Microsoft Remote Desktop Connection (mstsc.exe), the top connection bar usually displays:
server-name.domain.com
or
IP Address
By default, Microsoft RDP does not show:
This behavior is normal and built into the Remote Desktop client.
The simplest and most reliable method to identify logged-in users is the query user command.
query user
or
quser
USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME
administrator rdp-tcp#5 2 Active . 5/23/2026 8:15 AM
balvinder rdp-tcp#6 3 Active . 5/23/2026 9:10 AM
| Field | Description |
|---|---|
| USERNAME | Logged-in user account |
| SESSIONNAME | RDP session identifier |
| ID | Session ID |
| STATE | Active or Disconnected |
| IDLE TIME | User inactivity |
| LOGON TIME | Session login timestamp |
The qwinsta command provides session-level details.
qwinsta
SESSIONNAME USERNAME ID STATE TYPE DEVICE
services 0 Disc
console 1 Conn
rdp-tcp#5 administrator 2 Active
rdp-tcp#6 balvinder 3 Active
qwinsta is useful for:
In enterprise environments, administrators commonly use BGInfo from Microsoft Sysinternals.
BGInfo automatically displays system information directly on the desktop wallpaper.
It can show:
Computer Name : SERVER01
Logged User : administrator
IP Address : 192.168.1.10
OS : Windows Server 2019
BGInfo can be deployed via:
PowerShell provides advanced session management capabilities.
Get-WmiObject Win32_ComputerSystem | Select Username
Username
--------
DOMAIN\Administrator
Get-CimInstance Win32_LoggedOnUser
Task Manager also displays connected RDP users.
Ctrl + Shift + Esc
Users Tab
Third-party RDP management tools provide better visibility than Microsoft MSTSC.
Administrators often create customized .rdp shortcuts.
Instead of:
server01.rdp
Use:
server01-admin.rdp
server01-support.rdp
server01-backup.rdp
This makes identification easier when multiple sessions are open.
You can automatically display username information using a startup or login script.
@echo off
title %username%@%computername%
Write-Host "Logged in as: $env:USERNAME"
For professional IT environments:
| Tool | Purpose |
|---|---|
| BGInfo | Visual desktop identification |
| query user | Quick CLI checks |
| PowerShell | Automation |
| RDP Manager | Multi-session management |
This combination provides:
When monitoring RDP sessions:
Although Microsoft Remote Desktop Connection does not display the logged-in username in the top connection bar, administrators have several reliable methods to identify active RDP users.
Commands like query user and qwinsta provide quick visibility into active sessions, while tools like BGInfo and Remote Desktop Manager significantly improve enterprise usability.
For IT engineers and Windows administrators managing multiple servers daily, implementing these methods can streamline server operations, reduce confusion, and improve administrative efficiency.