Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Powershell to find Mailbox permissions

Posted on 2014-01-02
3
Medium Priority
?
411 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 2000 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
how to add IIS SMTP to handle application/Scanner relays into office 365.

721 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