Powershell to list the rights for each mailbox (who can read others mailboxes)

Just need to put your server name and if you want to not include some of the access rights (ie bes server and backup software etc… just add it to the where clause).


Get-Mailbox -server myserver | Get-MailboxPermission | where {$_.user.tostring() -ne "dontshowme" -and $_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.IsInherited -eq $false} | Select Identity,User,@{Name='Access Rights';Expression={[string]::join(', ', $_.AccessRights)}} | Export-Csv -NoTypeInformation mailboxpermissions.csv

About Jeff Turner

Technical director of Nano Tera Network Solutions.
This entry was posted in Powershell, VBS, VBA and other scripting. and tagged , . Bookmark the permalink.