Powershell Exchange 2010, Who has full access to mailboxes

I'm not a powershell guy...was wondering if someone knew how to do this...

Exchange 2010.  Multiple databases.  About 1000 mailboxes.  Single domain.
1. Need a script that would find who has Full Mailbox Permissions to other mailboxes
2. It needs to exclude system accounts like Admins, BES, etc..
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Danilo AndradeIT Systems AnalystCommented:
This is the script I use to do that, you can change the database in the beginning to get a list for each one:

Get-Mailbox -Database "MY DATABASE NAME" | Get-MailboxPermission | Where {($_.user.tostring() -ne "NT AUTHORITY\SELF") -and ($_.user.tostring() -notlike "*Discovery Management*") -and ($_.IsInherited -eq $false)} | Select Identity,User,@{Name='Access Rights';Expression={[string]::join(', ', $_.AccessRights)}} | Export-Csv -NoTypeInformation MailboxPermissions.csv

Open in new window

Jose Gabriel Ortega CastroEE Solution Guide/Topic Advisor and CEO Faru Bonon ITCommented:
1. you have already something similar in here

just modify line1 and you'll get it into csv
Get-Mailbox -resultsize unlimited | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.user.tostring() -ne "$localdomain\administrator" -and $_.IsInherited -eq $false} | Select Identity,User,@{Name='Access Rights';Expression={[string]::join(', ', $_.AccessRights)}} | Export-Csv -NoTypeInformation mailboxpermissions.csv

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
billFmurrayAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.