How to export user information to CSV from AD Active Directory Powershell


First:
import-module ac*
Second:
get-aduser -filter * -Properties DisplayName, EmailAddress | Select DisplayName, EmailAddress | Export-csv C:userswithemailaddress.csv
Third: File name “userswithemailaddress.csv” is now located in C Drive. You can export to other directories, just change the path.



Leave a Comment