• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 122
  • Last Modified:

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
0
SEHC
Asked:
SEHC
1 Solution
 
Will SzymkowskiSenior Solution ArchitectCommented:
What you have in your Script will show groups as well under the Users Heading for output. I removed the -isinherited -eq $false from the script and it shows the inherited groups as expected.

Get-Mailbox -server "" | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF"} | Select Identity,User,@{Name='Access Rights';Expression={[string]::join(', ', $_.AccessRights)}} | Export-Csv -NoTypeInformation mailboxpermissions.csv

Open in new window


Will.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now