for a windows host open a command prompt and enter query user /server:[COMPUTERNAME] might require elevation (not sure - I used an elevated prompt when I tested it). Another way would be to open the admin share [ \\computername\c$ ] - check the users folder and see whose profile has the most recent timestamp. Answer from SkimmingtonRide on reddit.com
🌐
ManageEngine
manageengine.com › adaudit plus › how to › how to view logged-on users in windows using cmd, powershell, and task manager
How to view logged-on users in Windows using CMD, PowerShell & Task Manager
CMD: Use query user or quser to list active sessions, including RDP users, with session ID, state, and idle time. PowerShell: Run Get-CimInstance Win32_ComputerSystem | Select-Object UserName for the console user, or quser for all sessions; ...
🌐
Reddit
reddit.com › r/winsides › show logged in users windows command line
r/Winsides on Reddit: Show logged in users Windows command line
January 7, 2025 - If you want to know the username of the account currently logged into the Command Prompt session, use the whoami command. Type the following command and press Enter: whoami · This will return the username of the currently logged-in user in ...
People also ask

Why is it important to check who is logged in?
Knowing who is logged into a system helps with security, troubleshooting, and resource management. It prevents unauthorized access and ensures systems aren’t used outside maintenance windows.
🌐
manageengine.com
manageengine.com › adaudit plus › how to › how to view logged-on users in windows using cmd, powershell, and task manager
How to view logged-on users in Windows using CMD, PowerShell & ...
What’s the difference between net user and query user?
‘net user’ lists all local accounts on the system, whereas ‘query user’ shows only currently active or logged-in user sessions.
🌐
manageengine.com
manageengine.com › adaudit plus › how to › how to view logged-on users in windows using cmd, powershell, and task manager
How to view logged-on users in Windows using CMD, PowerShell & ...
Why does query user return no results on Windows 10 Home?
Some editions like Windows 10 Home do not support session management commands like 'query user'. PowerShell alternatives can be used instead.
🌐
manageengine.com
manageengine.com › adaudit plus › how to › how to view logged-on users in windows using cmd, powershell, and task manager
How to view logged-on users in Windows using CMD, PowerShell & ...
🌐
Microsoft Learn
learn.microsoft.com › en-us › windows-server › administration › windows-commands › query-user
query user | Microsoft Learn
November 1, 2024 - Reference article for the query user command, which displays information about user sessions on a Remote Desktop Session Host server.
🌐
Guiding Tech
guidingtech.com › home › how to find who is currently logged into your windows computer
How to Find Who Is Currently Logged Into Your Windows Computer
July 15, 2024 - WMIC /NODE:"ComputerName" COMPUTERSYSTEM GET USERNAME · Replace ComputerName with the actual computer name of the system you are querying. Alternatively, you can also replace ComputerName with the IP address of the system.
🌐
TechRepublic
techrepublic.com › home › topics › software › software › determine what user is logged in remotely (command line)
determine what user is logged in remotely (command line) - TechRepublic
April 28, 2009 - or WMIC /NODE: “workstation_name” COMPUTERSYSTEM GET USERNAME will return the username currently logged into “workstation_name”
Find elsewhere
🌐
Spiceworks
community.spiceworks.com › software & applications
remotely Identifying a logged on user using CMD - Software & Applications - Spiceworks Community
November 27, 2013 - I am updating our asset list and I am trying to identify a couple of unknown computers in my organisation that are logged on occasionally by connecting to them using \computername\C$ I can then use the command: wmic ...
🌐
AirDroid
airdroid.com › home › remote support › how to see who is logged into a remote computer? [2025]
How to See Who Is Logged into a Remote Computer? [2025]
April 3, 2025 - To see who is logged into a remote computer, you can use the "Command Prompt" or "PowerShell" tools. Step 1: Open the "Run" box by pressing the "Windows + R" keys. Type "cmd" or "PowerShell" and press "Enter."
🌐
Netwrix
netwrix.com › en › resources › guides › how-to-list-all-user-accounts-on-a-windows-system
How to Get a List of All Windows User Accounts | Netwrix
Using the switch, the result will be formatted in a tabular form and will give you the output as below. The Get-LocalUser PowerShell cmdlet retrieves information about local user accounts on a Windows system.
🌐
Bradley Schacht
bradleyschacht.com › find-users-logged-into-remote-computer
Find Users Logged Into Remote Computer
May 24, 2024 - Just fire up the command prompt or PowerShell and run this: query session /server:"" query session /server:"KERBEROS-SP" As we see in the screenshot there is one user logged into this computer, the Administrator account.
🌐
Top Password
top-password.com › blog › see-currently-logged-in-users-in-windows
How to See Currently Logged in Users in Windows 10 / 8 / 7 | Password Recovery
March 11, 2017 - In this tutorial we’ll explain 2 methods to get a list of currently logged in users in Windows 10 / 8 / 7. Method 1: See Currently Logged in Users Using Query Command · Press the Windows logo key + R simultaneously to open the Run box. Type cmd and press Enter.
🌐
The Geek Page
thegeekpage.com › find-currently-logged-username-via-cmd-windows-pc
Find Out currently Logged On Username on Windows 10 / 11 - The …
September 13, 2025 - 2 – Once the command prompt opens up, you will have to type the command query user. On hitting the Enter button, you will get all the details associated with the user. Suppose that you are in another computer and you need to know who is logged ...
🌐
DevOps on Windows
devopsonwindows.com › home › articles › 3 ways to remotely view who is logged on
3 Ways to Remotely View Who Is Logged On
September 2, 2014 - Shorten command: gwmi Win32_ComputerSystem -cn | fl username ... I like the query command. thanks! ... You may be prompted for admin-level credentials when querying a remote machine. This will see if explorer.exe (the Desktop environment) is running on a machine, and “/v” provides the username. If a machine is not logged in, no explorer.exe process will be running.
🌐
Zecurit
zecurit.com › knowledge-hub › how-to-find-logged-in-computers-by-user
How to Find Which Computers a User is Logged Into | Zecurit
September 17, 2025 - Type the following command, replacing RemoteComputerName with the actual hostname or IP address: ... The output will list all users with active sessions, their session ID, state, and login time.
🌐
AnyViewer
anyviewer.com › how-to articles › how to check users logged in remote desktop [full guide]
How to Check Users Logged in Remote Desktop [Full Guide]
December 13, 2024 - If you want to know how to see who is logged in remote desktop, you should read this article. This article examines different methods for how to check users connected to remote desktop. By using these techniques, you can retain control over remote access and safeguard your network's security. To check who is logged into a remote computer, you can utilize the "Command Prompt" or "PowerShell" tools. Step 1. Open the "Run" box by pressing the "Windows + R" keys. Enter "cmd" or "PowerShell" and then press "Enter."
🌐
Gig XP
gigxp.com › home › commands to check logged in users in windows 10 locally & remotely
Commands to Check Logged in Users in Windows 10 Locally & Remotely
June 30, 2021 - Step-2: Now you must type “CMD” and hit “Enter” to launch a command prompt. Step-3: In the command prompt, you must type “query user” and hit “Enter”. You will see the computer name or domain along with the username displayed ...