Link to home
Start Free TrialLog in
Avatar of chokka
chokkaFlag for United States of America

asked on

How to retrieve User Id by ping host name in the Command Prompt?

How to retrieve User Id by ping host name in the Command Prompt?

I want to know who logged in, by providing the Computer Name in the CMD

Something like this .. ping -a [HOSTNAME]
Avatar of McKnife
McKnife
Flag of Germany image

Look at the options of qwinsta.exe /?
It can so it.
Cool.

I just tested it by doing

qwinsta /server:servername and it came back with a list.

Excellent suggestion.
Avatar of chokka

ASKER

I am sorry, not clear enough forme .. what is server:servername

My ServerName is Stage01

Stage01:Stage01
ASKER CERTIFIED SOLUTION
Avatar of Scott C
Scott C
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chokka

ASKER

Thanks
You might want to split the points...McKnife gave the utility, I gave the syntax.  It was a joint effort.  :-)
Avatar of chokka

ASKER

@scottcha, Thank you. I missed it.