question

KeaneDave-5381 avatar image
0 Votes"
KeaneDave-5381 asked KeaneDave-5381 commented

Exchange Powershell

Is there a PShell script that can list or export me details on which mailboxes are shared and the user name who it is shared with.

Example.....

Mailbox Name, Share with Mailbox name.

Bill Jones, Sally Smith

I will settle on anything that gets me close to this information also.

Thanks!

office-exchange-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KaelYao-MSFT avatar image
0 Votes"
KaelYao-MSFT answered KeaneDave-5381 commented

Hi @KeaneDave-5381

I suppose you mean full access permission.
You may use the following command to get and export the results to a csv file:

 Get-Mailbox -ResultSize unlimited -RecipientTypeDetails usermailbox | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.IsInherited -eq $false -and $_.AccessRights -eq "FullAccess"} | Select @{n="Mailbox Name";e={$_.identity}},@{n="Share with Mailbox name";e={$_.user}} | export-csv C:\result.csv


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KaelYao-MSFT, thanks this worked great!

0 Votes 0 ·
michev avatar image
1 Vote"
michev answered KeaneDave-5381 commented

Depends on what you mean by "shared". For full access, use the script here: https://github.com/michevnew/PowerShell/blob/master/Mailbox_Permissions_inventory.ps1
If you want to cover folder-level access, try this one: https://github.com/michevnew/PowerShell/blob/master/Mailbox_Folder_Permissions_inventory.ps1
(to get the help files, replace .ps1 with .md)

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TTo Clarify shared, looking for the mailboxes that have user with read and write mailbox permissions for any mailbox that is active.

0 Votes 0 ·