SGlazebrook oh, that works! So the solution would be to add {(Get-Mailbox $_.Identity | Select DisplayName)} when using Get-MailboxPermission.
e.g.
Get-Mailbox -resultsize unlimited | Get-MailboxPermission | Select User, {Get-Mailbox $_.Identity | Select DisplayName}, AccessRights | Where {($_.User -ne "NT AUTHORITY\SELF")} | Sort-Object -Property User | Export-Csv -Path "c:\temp\MailboxPermissions.csv" -NoTypeInformation
Updated Oct 23, 2024
Version 2.0