Trying to retrieve a list of users who have FullAccess rights on a mailbox in Exchange 2007 Powershell

AAP_Midrange used Ask the Experts™
I've been tasked with looking at several different mailboxes and notating who has FullAccess permissions to these mailboxes.  Just about everything I find online references this the other way around: "What mailboxes does user X have FullAccess  rights to".  In my scenario, I do not know who the individual users are; but only the name of the mailbox itself.  Ultimately, I'd like to be able to run a powershell script that would filter out everything except the users who had FullAccess rights on that particular mailbox and export it out to a .CSV.  I've tried several different scripts and commands but I still am unable to get the exact output I'm looking for.  Any help would be much appreciated!
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
This is what I use. It shows all permissions on the mailboxes that are not inherited.
I have 9 DAGs so I repeat this command 9 times in the script to retrieve all of them.
Open in Excel and set the delimitors manually. Remove the blank line between server outputs.

$path = Get-Location
$today = Get-Date
$rundate = $($today.adddays(-0)).toshortdatestring()
Write-Host " Script has begun $today"

$outfile_date = ([datetime]$rundate).tostring("MMM dd yyyy")
$outfile = "Mailbox Rights_" + $outfile_date + ".txt"

Write-Host "  Querying EXDAGA01"
Get-Mailbox -Server "EXDAGA01"  -resultsize "Unlimited" | Get-MailboxPermission | where { ($_.IsInherited -eq $false) } | `
where { ($_.User -notlike 'NT AUTHORITY\SELF') } | ft @{Name="Identity";expression={($_.Identity )}}, User,AccessRights |`
 Format-Table | Out-File $outfile -append -Width 900


Thank you very much!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial