Solved

Powershell to find Mailbox permissions

Posted on 2014-01-02
3
386 Views
1 Endorsement
Last Modified: 2014-01-09
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
Comment
Question by:GCTTechs
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
Will Szymkowski earned 500 total points
ID: 39751536
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
 

Author Comment

by:GCTTechs
ID: 39768843
Spec01, just to clarify...

? {$_user -like "Domain\username*


I leave the ? and enter my domain\username followed by the *    ?
0
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 39768888
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will help you understand what HashTables are and how to use them in PowerShell.
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question