S
S
speedvm2015-10-23 16:06:11
cmd/bat
speedvm, 2015-10-23 16:06:11

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

4 answer(s)
S
speedvm, 2015-10-23
@speedvm

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

E
Eugene, 2015-10-23
@yellowmew

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

A
AntohaRomaha, 2015-10-23
@AntohaRomaha

Task Manager, Users tab?

M
Maxim Yaroshevich, 2018-01-17
@YMax

The most convenient and easiest way is psloggedon

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question