Get all shared mailboxes in Office 365 and display the email address and displayname using PowerShell

Problem:

How do you get all shared mailboxes in Office 365 and display the email address and displayname

Solution:

Run the below command:

Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize Unlimited | select PrimarySmtpAddress,DisplayName |  export-csv c:\temp\SharedMailboxUsers.csv 

2 Replies to “Get all shared mailboxes in Office 365 and display the email address and displayname using PowerShell”

  1. Hi,

    I wonder if someone could help me please in getting a script to list all shared mailboxes, the primary SMTP, Display Name, Alias, and the size of the mailbox in GB or MB.
    I need to be able to export this result also ideally please.

    Thank you in advance.

    Imran Karim

Leave a Reply

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