Quantcast
Channel: Exchange Server 2013 - General Discussion forum
Viewing all articles
Browse latest Browse all 4521

Export Display Name for users

$
0
0

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


Viewing all articles
Browse latest Browse all 4521

Trending Articles