Link to home
Start Free TrialLog in
Avatar of SEHC
SEHCFlag for Canada

asked on

Exchange 2010 Power Shell

Hi


I have the following command is there a way I can get all the groups and users that have access to a mailbox

Get-Mailbox -server "" | 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

Please let me know what I need to edit
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial