Danny Child
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.
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.
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 !!
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
Much appreciated.
Danny
If your servers are W2K or W2K3, then is a small VBScript an option?
Cheers!