Solved

Powershell to find Mailbox permissions

Posted on 2014-01-02
3
393 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 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