April 13

How to List Users and Groups Email Addresses and Alias in Office 365 Using PowerShell

Get-Recipient | Select DisplayName, RecipientType, EmailAddresses

 to export the results to a csv file:

Get-Recipient | Select DisplayName, RecipientType, EmailAddresses | Export-Csv EmailAddresses.csv

to only list the primary email address:

Get-Mailbox |Select-Object DisplayName,PrimarySmtpAddress


Posted April 13, 2023 by Ray in category "Exchange", "Microsoft 365

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.