Active Directory – PowerShell – Return User, Username, Email Address
This is how you would return the SAM account name, username, and email address for a specific domain. Useful, especially if you need to return data from multiple domains (just change the DCSERVER and OU, accordingly). Notes Get-AdGroupMember Get-ADUser Export-CSV