Solved

Search shared mailbox permissions for a particular group

Posted on 2014-04-01
6
364 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
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

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create a Shared 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 >> Sha…
To show how to generate a certificate request 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 Servers >> Certificates…

773 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