How To Merge Distribution Groups

Nina Brooks 0 Reputation points
2023-01-20T21:22:04.92+00:00

At the group level. I want to be able to see all mail going into one distribution group to automatically go to another distribution group so that I can manage them simultaneously.

***This is not at the user level

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,987 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
3,297 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,121 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,027 questions
{count} votes

3 answers

Sort by: Most helpful
  1. SanthiSwaroopNaikBukke-4908 595 Reputation points
    2023-01-20T21:23:56.19+00:00

    In order to merge distribution groups in Microsoft Exchange, you can use the Exchange Management Shell (EMS) to perform the merge. Here are the steps to do this:

    1. Open the Exchange Management Shell on the Exchange server.
    2. Use the following command to export the members of the source distribution group to a CSV file:
    Copy code
    Get-DistributionGroupMember -Identity "SourceGroup" | Export-CSV -Path "C:\Temp\SourceGroupMembers.csv"
    
    1. Use the following command to import the members from the CSV file to the target distribution group:
    Copy code
    Import-CSV -Path "C:\Temp\SourceGroupMembers.csv" | ForEach-Object {Add-DistributionGroupMember -Identity "TargetGroup" -Member $_.PrimarySMTPAddress}
    
    1. Once the members have been imported to the target group, you can use the following command to remove the members from the source group:
    Copy code
    Get-DistributionGroupMember -Identity "SourceGroup" | Remove-DistributionGroupMember -Confirm:$false
    
    1. Finally, you can use the following command to remove the source group:
    Copy code
    Remove-DistributionGroup -Identity "SourceGroup" -Confirm:$false
    

    Note that you should test the merge process on a test environment before applying it to production.

    Also, you can use the same process to merge distribution groups in Office 365 with Exchange Online PowerShell.

    1 person found this answer helpful.
    0 comments No comments

  2. Yuki Sun-MSFT 40,926 Reputation points
    2023-01-23T06:45:24.0066667+00:00

    Hi @Nina Brooks

    Supposing you are using Microsoft Exchange, you can create a mail flow rule to add the other distribution group as a BCC recipient in all mails sent to the first distribution group.

    Let's say you would like all mails sent to DL1 to automatically go to DL2 as well, the mail flow rule can be created as follows:
    1

    2

    Hope this can be helpful. Feel free to let me know if I have misunderstood anything.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.

    1 person found this answer helpful.

  3. Amit Singh 4,866 Reputation points
    2023-01-23T09:21:12.4266667+00:00

    Connect to Exchange Online Powershell and try the following code. I recommend creating two groups to test with first and running this against those groups to validate it before you modify production groups.

    Get-DistributionGroupMember -Identity "Source Group" | ForEach-Object {Add-DistributionGroupMember -Identity "Destination Group" -Member $_.PrimarySmtpAddress}  

    1 person found this answer helpful.
    0 comments No comments