Find logged in user of a remote computer using CMD

sometime I need to know who is loged on specific computer, but I do not know where is this computer, and do not have access to this one.

There is much faster way than to walk around and search.

Open CMD and type

“wmic.exe /node:[computername or ip address] computersystem get username”

More about WMIC command you can find there WMIC Technet