List All Mailboxes

Retrieve a list of all mailboxes in your tenant. Use the Connect-ExchangeOnline function to use this code.

Get-Mailbox -RecipientTypeDetails UserMailbox | Select-Object DisplayName, PrimarySmtpAddress, MailboxPlan