• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 427
  • 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

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

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