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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Like:
Click Start -> Run -> Cmd.exe -> OK
CSVDE -R "(objectCategory=user)" -L givenName,sn,sAMAccountNam
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