What's New

Find All Users in Active Directory

So, I was assigned to get a list of all the users in Active Directory and hand it in at the end of the day.  Now, the IT Manager wanted this information placed in a *.csv file.  I checked the Users OU [Organization Unit] and we had about 1000+ users and I had to write all the names down in a spreadsheet. NO WAY!!! This calls for PowerShell. The commandlet [cmdlet] that I used is the Get-QADUser.

The script:

Get-QADUser -SearchRoot fake.domain.com/users | Format-Table Name | Out-File D:\ADuser.csv

About BjTechNews (1056 Articles)
An IT guy trying to learn everything about technology and sharing it with you all. I'm a blogger and video blogger who highlights daily news in the tech industry, promoting tips and hacks for fellow techies.

1 Comment on Find All Users in Active Directory

  1. We have a free tool that will export users from AD.

    https://techtoolbox.com/index.php/active-directory-user-list-reporting-tool

    Hope you find it helpful!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: