Solved

Search shared mailbox permissions for a particular group

Posted on 2014-04-01
6
360 Views
Last Modified: 2014-04-08
Hi,

Please help. I am looking for a powershell command that will list all the shared mailboxes a particular security group has access to.

Thanks.
0
Comment
Question by:tbslim
  • 3
  • 3
6 Comments
 
LVL 16

Expert Comment

by:Enphyniti
ID: 39973400
This would be a setting on a mailbox, so you're going to have to loop through all of your mailboxes.

Now, if you're really only concerned about mailboxes of type "Shared Mailbox" then you can scale that down significantly.  This will only work if you really mean "mailboxes of type: Shared" and not just 'user mailboxes that have been shared."  There is a difference.

Is that what you're trying to do?
0
 
LVL 16

Accepted Solution

by:
Enphyniti earned 500 total points
ID: 39973425
Essentially, you're looking at doing the following:

foreach ($mb in (Get-mailbox) {if (get-mailboxpermission $mb -user DOMAIN\GROUP){write-host DOMAIN\GROUP has access to $mb}}

Open in new window


output would look like:

DOMAIN\GROUP has access to John Doe
DOMAIN\GROUP has access to Bill Gates
DOMAIN\GROUP has access to Another Mailbox

The line above is going to return a TRUE for any mailbox that has DOMAIN\GROUP listed in it's mailbox permissions.

There are a number of ways you can scale down the number of mailboxes you operate on, and also a lot that you can do with the output.
0
 

Author Comment

by:tbslim
ID: 39973677
That's it!

Thank you very much.
0
Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

 

Author Comment

by:tbslim
ID: 39973716
I've requested that this question be closed as follows:

Accepted answer: 0 points for tbslim's comment #a39973677

for the following reason:

Works perfectly.
0
 

Author Comment

by:tbslim
ID: 39973688
Yes. They are only interested in actual shared mailboxes since they keep a tight lid on granting groups to regular user's mailboxes.
0
 
LVL 16

Expert Comment

by:Enphyniti
ID: 39973717
Please mark my answer as the accepted answer to close the question.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Resolve DNS query failed errors for Exchange
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
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

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now