Link to home
Start Free TrialLog in
Avatar of menreeq
menreeq

asked on

Export AD User accounts to excel

We have a lot of user accounts that are old and should be removed.  However I need a way to export the list off all the user accounts from AD to excel or word so that I can show it to the boss and get his help deciding which accounts should be removed.  Anyone know of a way to do this?
ASKER CERTIFIED SOLUTION
Avatar of fbcbloodcenter
fbcbloodcenter
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
You can use command line utility called CSVDE to export required information into .csv format that can be easily opened into Excel.

Like:
Click Start -> Run -> Cmd.exe -> OK

CSVDE  -R "(objectCategory=user)" -L givenName,sn,sAMAccountName,mail -F UserInfo.csv

Above statement will create UserInfo.csv file.

OR
Directory Users and Computers (ADUC):
1.  Open ADUC and go to the OU you want to export
2.  Click View - Add/Remove Colums - and select / arrange the attributes you want to export
3.  Click Action - Export

Hope this helps!
Farhan