Advertisements
BTNHD News

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

Advertisements
About BjTechNews (896 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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s