How to generate a report of full mailbox access

 

If you have gone through an ExRAP lately and have encountered this as an observation during operational interview you are definitely going to need this very small piece of powershell command.

$CreateStamp = Get-Date -UFormat %d_%m_%Y
Get-Mailbox -ResultSize Unlimited | Get-MailboxPermission | Where {$_.User.ToString() -ne “NT AUTHORITYSELF” -and $_.IsInherited -eq $false} | Select Identity,User,@{Name=’Access Rights’;Expression={[String]::Join(‘, ‘, $_.AccessRights)}} | Export-Csv -NoTypeInformation -Path “C:tempFull_Mailbox_Access_Report_$CreateStamp.csv”

 

.

2 thoughts on “How to generate a report of full mailbox access”

  1. Good one Milind, I tried running and got a format error coz of ‘. This one worked…

    $CreateStamp = Get-Date -UFormat %d_%m_%Y
    Get-Mailbox -ResultSize Unlimited | Get-MailboxPermission | Where {$_.User.ToString() -ne “NT AUTHORITYSELF” -and $_.IsInherited -eq $false} | Select Identity,User,@{Name=’Access Rights’;Expression={[String]::Join(‘, ‘, $_.AccessRights)}} | Export-Csv -NoTypeInformation -Path “C:tempFull_Mailbox_Access_Report_$CreateStamp.csv”

Comments are closed.