Hello
i have this script that works great for exporting users who have Full Access to all of our Mailboxes, but the client of the report would like see a column for Display Name and smtp address. How can i achieve this ?
Get-Mailbox -ResultSize unlimited | Get-MailboxPermission | where {($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”) -and -not ($_.User -like “S-1-5*")} | Select-Object Identity,User, @{Name='AccessRights';Expression={[string]::join(', ', $_.AccessRights)}} | Export-CSV C:\temp\permission.CSV