User Tools

Site Tools


internet:mail:exchange:exchange_list_users

List Exchange Users with PowerShell

Get-mailbox -ResultSize "unlimited" | select Name, PrimarySmtpAddress

List E-Mail Addresses and Aliases

https://enterpriseit.co/microsoft-exchange/export-list-of-all-exchange-email-addresses-and-aliases/

CSV:

Get-Mailbox -ResultSize Unlimited -OrganizationalUnit "OU=Phoenix Users,OU=Phoenix,DC=CONTOSO,DC=COM" |Select-Object DisplayName,PrimarySmtpAddress, @{Name="EmailAddresses";Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq "smtp"} | ForEach-Object {$_.SmtpAddress}}} | Export-CSV c:\exportsmtp.csv -NoTypeInformation

Text:

ldifde -f c:\emailaddresses.txt -d "dc=contoso,dc=com" -l proxyaddresses -r "(proxyaddresses=*smtp:*@*)"
internet/mail/exchange/exchange_list_users.txt · Last modified: 2019/05/20 09:50 by gcooper