Create OnPremise Hybrid Distribution List after creating the DLs in bulk using the ExchangeOnline using New-DistributionGroup?

EnterpriseArchitect 6,041 Reputation points
2022-08-15T06:35:16.723+00:00

People,

I'm using Hybrid Exchange Online and Exchange On-premise, with the AD synched to Azure AD.

What is the PowerShell code to create the Hybrid AD group?

Because when I create the new bulk DLs using the below cmdlet, it does NOT show as Hybrid OnPremise?

# CSV in the format below   
# DisplayName, Alias, Email Address  
  
Import-CSV “D:\distributionlist.csv” | foreach {New-DistributionGroup -Name $_.name -Type $_.Type}  

Thank you in advance.

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
Windows for business Windows Client for IT Pros Directory services Active Directory
Exchange Hybrid management
Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

Accepted answer
  1. Andy David - MVP 157.4K Reputation points MVP Volunteer Moderator
    2022-08-15T12:55:45.983+00:00
    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Andy David - MVP 157.4K Reputation points MVP Volunteer Moderator
    2022-08-15T12:33:09.31+00:00

    and you are connecting via Exhcange on-prem powershell?

    Are there any errors? Can you create one manually?

    1 person found this answer helpful.

  2. Limitless Technology 39,916 Reputation points
    2022-08-17T07:21:48.973+00:00

    Hello EnterpriseArchitect,

    The creation of Hybrid AAD or Dynamic groups is quite lengthy (not just couple of functions and variables) but sure you can find some examples online that you can modify, for example searching as "Create New Hybrid On Prem Active Directory User"

    On Microsoft side, the best recommendation is to create this groups manually to avoid reconfiguration during the composition of scripts that sometimes can cause attributes or relationships to not be configured correctly.

    You can find the whole process here, including guide video and steps: https://learn.microsoft.com/en-us/azure/active-directory/devices/howto-hybrid-azure-ad-join

    --------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.