Skip to content

Instantly share code, notes, and snippets.

@normansolutions
Created January 13, 2014 12:11
Show Gist options
  • Save normansolutions/8399252 to your computer and use it in GitHub Desktop.
Save normansolutions/8399252 to your computer and use it in GitHub Desktop.
PowerShell script to display all users to have access to other mailboxes in Exchange. Thanks to: http://exchangeserverpro.com/list-users-access-exchange-mailboxes/
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 mailboxpermissions.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment