Remove Shared Mailboxes From Dynamic Distribution Group

Posted on 2014-08-11
Last Modified: 2014-08-19
I have Exchange 365, and I created a dynamic distribution group that includes all employees.  This works fine, but the group appears to include "Shared" mailboxes.  Is there a way to remove these addresses from the group without specifying each individual mailbox?  Thanks for reading.
Question by:thedeal56
    LVL 3

    Expert Comment

    You'd have to create a filter for your disto group that specifies only user boxes, else you're going to have to manually hide those mailboxes from your list.

    Author Comment

    Thanks for your quick reply!  This is how I initially configured the group:
    group settings
    I can add additional filters, but I'm not really sure how to make a filter that excludes the shared boxes.
    LVL 19

    Accepted Solution

    Please refer this article from (Linda Wang MSFT Support ) to understand the available RecipientType or IncludedRecipients filter when you create a Dynamic Distribution Group.

    Author Comment

    Sorry for the delay.  Let me know if I'm understanding this correctly.  Let's say for each shared mailbox I input "shared" in the department field.  Then I add an attribute to the distribution group(making sure to include my existing attributes) that excludes any departments with the name "shared".  Will that work?

    Author Comment

    Here's what I ended up doing:  I added a value of "Exclude" as a custom attribute to the boxes that I didn't want to show up in the group, and then I ran this command:

    Set-DynamicDistributionGroup "All Employees" -RecipientFilter {((RecipientType -eq 'UserMailbox') -and (CustomAttibute1 -ne 'Exclude'))}

    Looks like it's all good now.  Thanks so much for your help with this.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
    This video discusses moving either the default database or any database to a new volume.

    754 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

    22 Experts available now in Live!

    Get 1:1 Help Now