Active Directory User Reporting

This is a simple example of how to create a report of your Active Directory users.
The first command imports the PowerShell Active Directory module, which should be installed by default, otherwhise do this:

Install PowerShell Active Directory Module

Import-Module ActiveDirectory
Get-ADUser -Filter {EmailAddress -like "*"} -Properties * | select DisplayName, GivenName, Name, Surname, mail, SamAccountName, Department, Title, extensionAttribute1, extensionAttribute2 | Out-GridView

And the second command creates a simple report.

Leave a Reply