• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 389
  • Last Modified:

Search shared mailbox permissions for a particular group

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
tbslim
Asked:
tbslim
  • 3
  • 3
1 Solution
 
Jon BrelieSystem ArchitectCommented:
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
 
Jon BrelieSystem ArchitectCommented:
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
 
tbslimAuthor Commented:
That's it!

Thank you very much.
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
tbslimAuthor Commented:
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
 
tbslimAuthor Commented:
Yes. They are only interested in actual shared mailboxes since they keep a tight lid on granting groups to regular user's mailboxes.
0
 
Jon BrelieSystem ArchitectCommented:
Please mark my answer as the accepted answer to close the question.
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now