Answer the question
In order to leave comments, you need to log in
How to find out the username of the logged in user on a remote computer?
Good day to all!
Tell me, how to find out the name of the user who logged into the system on a remote computer using standard Windows tools (using cmd or wmic commands)? I do not mean those users who once logged in, but who is currently logged in.
Thank you in advance!
Answer the question
In order to leave comments, you need to log in
Found a solution. I think this is it:
WMIC /NODE: xxx.xxx.xxx.xxx COMPUTERSYSTEM GET USERNAME
or
WMIC /NODE: "workstation_name" COMPUTERSYSTEM GET USERNAME
well, for example, using the tasklist command, you can find out under which users the explorer.exe process is running on a remote computer
You can always keep at hand and actively use useful pstools utilities
Through reg query (command line utility), do the same as psloggedon does from pstools
or powershell
Get-WMIObject -Class Win32_ComputerSystem -Computer "Comp1"|Select-Object Username
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question