Link to home
Start Free TrialLog in
Avatar of Danny Child
Danny ChildFlag for United Kingdom of Great Britain and Northern Ireland

asked on

resolve a logon name to a user name via Command Prompt

Hi,
is there a funky tool somewhere to resolve a logon name to a user name at a command prompt?  I'm using PSLOGGEDON from pstools - http://www.sysinternals.com/ntw2k/freeware/pstools.shtml - to help with an inventory at a new role I've just got.  

It would be handy if I could stay in the command prompt session and find the user's full name, rather than their logon ID.  Pasting it into a new mail message and Ctrl+K to Check Names works, as the mail alias is often the same, but it's a bit tedious.  Might come in handy for batch files too...

tia - Danny.
Avatar of David Lee
David Lee
Flag of United States of America image

Hi DanCh99,

If your servers are W2K or W2K3, then is a small VBScript an option?

Cheers!
You mean something like this :

http://vbnet.mvps.org/index.html?code/network/netusergetinfo.htm

I know that is in visual basic but I think that is what you were looking for, not entirely sure ? If it wasnt them I am sorry !!
ASKER CERTIFIED SOLUTION
Avatar of Eagle6990
Eagle6990
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 Danny Child

ASKER

Eagle6990 - looks good, I'll give it a spin when I'm in work again tomorrow!
Gecko - Could be a handy tool, maybe a bit too much for now - but I'll give it a go too.  
BlueDevilFan - vbs is an option, and yes - servers are 2k.

cheers, Danny
SOLUTION
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
SOLUTION
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
Eagle6990's suggestion is the cleanest one out of the box, but I like the others too, so I've gone for the split.  
Much appreciated.
Danny