Export a filtered list of [[Windows Active Directory (AD)|Active Directory]] users to a [[Comma-separated values (CSV)|CSV file]]. # PowerShell ```PowerShell Get-ADUser -Filter * -SearchBase "OU=Research,OU=Users,DC=ad,DC=contoso,DC=com" -Properties * | Select-Object name | export-csv -path c:\temp\userexport.csv ``` # Active Directory Users and Computers GUI The GUI can also be used to export the list to CSV^[[Export AD Users to csv file - Microsoft Q&A](https://learn.microsoft.com/en-us/answers/questions/239938/export-ad-users-to-csv-file)]. - Open AD, Click on Filter Button. ![59114-filter.jpg](https://learn-attachment.microsoft.com/api/attachments/59114-filter.jpg?platform=QnA) - Perform a Custom filter for Organization Unit. ![59211-ad1.png](https://learn-attachment.microsoft.com/api/attachments/59211-ad1.png?platform=QnA) - Click on the Export button ![59212-export.jpg](https://learn-attachment.microsoft.com/api/attachments/59212-export.jpg?platform=QnA) - Select CSV file extension ![59185-csv.jpg](https://learn-attachment.microsoft.com/api/attachments/59185-csv.jpg?platform=QnA)