Retrieve currently logged in User name to the computer

jskfan
jskfan used Ask the Experts™
on
We need a tool or a script that runs against a specific computer in the Domain and retrieves the currently logged in user name.

Thank you
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Gerwin Jansen, EE MVETopic Advisor
Most Valuable Expert 2016
Commented:
Distinguished Expert 2018
Commented:
Built-in, there's qwinsta.exe
qwinsta /server:remotepcname

Author

Commented:
Microsoft has a built in command :
WMIC /NODE: xxx.xxx.xxx.xxx COMPUTERSYSTEM GET USERNAME Will return the username currently logged into xxx.xxx.xxx.xxx
Distinguished Expert 2018

Commented:
So you already have 3 to choose from.

Author

Commented:
Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial