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
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!