mailbox permissions report

Is there an easy way to get a full list of which users can access which mailboxes in an Exchange 2013 environment. Ideally written out to a spreadsheet. In 2010 there used to be a mass of exchange shell commands which could do the same...

I also wondered for exchnage365 mailboxes, if there is a way to get the same report for those mailboxes as well?
LVL 3
pma111Asked:
Who is Participating?
 
Will SzymkowskiConnect With a Mentor Senior Solution ArchitectCommented:
You can use the following powershell script to get the mailbox permissions...

$Mailboxes = get-mailbox -resultsize "unlimited"
foreach ($Mailbox in Mailboxes) {
Get-mailboxPermission -Identity $Mailbox | select Identity, User, AccessRights | out-file "c:\exportedpermissions.csv" -append
}

Open in new window


Will.
0
 
matt160Connect With a Mentor Commented:
Will's should do the job. I use the one below.

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

can you get similar report for your exchange online mailboxes...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.