Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 422
  • Last Modified:

Powershell to find Mailbox permissions

Server: Exchange Server 2010 SP3

I'm looking for a Powershell script to determine which mailboxes a certain user (UserA) has Full permissions to, then export the results to a CSV.
1
GCTTechs
Asked:
GCTTechs
  • 2
1 Solution
 
Will SzymkowskiSenior Solution ArchitectCommented:
You can accomplish this via Powershell. Use the below script to accomplish this...

get-mailbox -resultsize "unlimited" | get-mailboxpermission | ? {$_user -like "Domain\username*" -and $_.AccessRights -eq "FullAccess"} | Select Identity, User, AccessRights | out-file "c:\FullAccessPerms.csv"

Will.
1
 
GCTTechsAuthor Commented:
Spec01, just to clarify...

? {$_user -like "Domain\username*


I leave the ? and enter my domain\username followed by the *    ?
0
 
Will SzymkowskiSenior Solution ArchitectCommented:
The above is correct. When you are using the -like switch you need to have an asterisk somewhere in the value. You can use the -eq switch which will not require the asterisk "*" but if the results are not exactly the same as the value it does not show anything.

This is why i like to use the "-like" switch incase there are spaces or something else that i missed it will pick it up.

Will.
1

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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