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>

If you have any questions or need some support, feel free to contact us!

Hello Comtec Support
Tel: +44(0)1752 422950
email: support@hellocomtec.com
web:  https://hellocomtec.com
fb: https://www.facebook.com/hellocomtec
tw: https://twitter.com/hellocomtec



Did you find this article useful?