Listing shared mailboxes and members - Powershell

Copper Contributor

Hi,

Does anyone knows how to get a list of shared mailboxes and members with powershell?

Thanks in advance,

Regards

23 Replies

@techyguys How to see members of particular Shared mailbox

@Danver2019 

 

Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited | Get-MailboxPermission | select identity,user,accessrights  | where { ($_.User -like '*@*')   } | Export-csv -path D:\Gowher.CSV

Get-Mailbox -identity gowher@contoso.com -RecipientTypeDetails SharedMailbox | Get-MailboxPermission | select identity,user,accessrights | where { ($_.User -like '*@*') }

@Carlos Yohn Zubiría can use the following command.

Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited | Get-MailboxPermission |Select-Object Identity,User,AccessRights

it will show the shared mailbox, user who have the permission and the permission level