Find distribution groups that have nested dynamic distribution groups

Srbh_TheComputerGuy 101 Reputation points
2021-03-08T04:30:50.557+00:00

This is a 2 part question; We are planning to move all of our on premises dynamic distribution groups to Office 365. For this this activity we create a DDG with similar configuration on the O365 with prefix "new-onpremDDG" and later we add prefix "notused-onpremDDG" on the on premise DDG in on-prem and its corresponding cloud contact. In the due course, we remove the prefix "new-" from the cloud based DDG and thats how we are moving them. Our eventual goal is to get rid of the on-premises DDG and its corresponding cloud contact objects.

Q1) So the question here is, if at all an on premise DDG is member of a distribution group; will that distribution group get affected since its member DDG now has a new object with same email address?

Q2) Is there a powershell script to determine the Distribution groups that have nested DDG's as members.

Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
2,010 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,190 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,895 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lucas Liu-MSFT 6,161 Reputation points
    2021-03-09T04:28:24.013+00:00

    Hi @Srbh_TheComputerGuy ,
    1.According to my test, I create a new Dynamic distributoin group in Office 365, and set it display name and email address to be the same as a dynamic distriobution group in on-premises Exchange server. When I send an email to this email address, both dynamic distribution group received email. If you do not delete the dynamic distribution group with the same email address in the on-premises Exchange server. Then the mail sent to the dynamic distribution group in Office 365 may be accidentally sent to other recipients.

    2.According to me research and test, I found a script could export all distribution group and all members in Exchange and Offcie 365. You could judge whether the distribution group is nested dynamic distribution group according to the exported members.
    For more information: Export all distribution Group and all members in Exchange and Office 365
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    75691-1.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful