Link to home
Start Free TrialLog in
Avatar of automaton64
automaton64

asked on

I need a script to display first names, last names and logon names of active directory users.

I need to produce a report in excel that will give a sortable list of first names, last names and logon names of active directory users.
Avatar of MikeKane
MikeKane
Flag of United States of America image

From a DC, run this command:
dsquery user domainroot -limit 0 | dsget user -dn -fn -ln   >c:\list.txt

That will create the output in a textfile that can be brought into XLS.
ASKER CERTIFIED SOLUTION
Avatar of Paka
Paka

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 automaton64
automaton64

ASKER

Thank you.