# 65.014 Windows Server: Get a list of Active Directory users using PowerShell
Browse to OU in Users & Computers Right-click OU folder and choose properties Click on Attribute editor tab and find distinguishedName record Double click the record to open it and then copy the contents of the record Start - PowerShell Right-click PowerShell and choose run as administrator Get-ADUser -Filter \* -SearchBase "<REPLACE THIS WITH THE TEXT YOU COPIED>" -Properties \* | Export-Csv "c:\\ADUsers.csv" The list will be in c:\\ADUsers.csv --------------------------------------------<END OF DOCUMENT> --------------------------------------------
**Need help? G****et in touch!**
You can call us on [01752 373000](tel:01752373000), option 2 or, if you are on Number Club, just call extension 3001 You can email us at You can chat & Collaborate with us at [https://kite.wildix.com/nc-a12/3001](https://kite.wildix.com/nc-a12/3001) You can Whatsapp us right here: [https://wa.me/441752373000](https://wa.me/441752373000)
![](https://hub.safeharboursupport.com/media/KBImages/safeharbour-logo-colour-nobg-500x140.png)
**Document Control**
**Document Name** 65.014 Windows Server: Get a list of Active Directory users using PowerShell
**Version** v1.0 Current
**Author** Neil Tancock, IT Services (Safeharbour Support Ltd),
**Approval** Safeharbour Support
**Approval date** 01-JAN-2025 **Review date** 31-DEC-2027
**Absract** None
**Scope** This document applies to all clients of Safeharbour Support Ltd
**Inputs** None
**Outputs** None
**Change Control**
**Date** **Author** **Version** **Change**
02-DEC-2024 Neil Tancock 0.0 First version
01-JAN-2025 Neil Tancock 1.0 Approved
This is an uncontrolled copy when printed - please refer to the electronic version for the latest version