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.

- Perform a Custom filter for Organization Unit.

- Click on the Export button

- Select CSV file extension
