Avatar of Christian Hans
Christian Hans
Flag for United States of America asked on

Dynamic Distribution Lists when in Hybrid Office 365 Enviroment

I need to create a Dynamic Distribution List for the entire company... in a Hybrid Office 365 environment...

What's the best practice to get this done, so both select users in O365 and select users still on-premises can email the DDL?

DDL Name: All Corporate Employees
DDL Email: AllCorporateEmployees@contoso.com

Set-DynamicDistributionGroup -Identity AllCorporateEmployees@contoso.com -IncludedRecipients "MailboxUsers,MailContacts" -RecipientFilter {((RecipientType -eq 'UserMailbox' -or 'MailUser' -or 'MailContact'))}

Would that suffice?

Does anyone have any sample PowerShell commands to accomplish this so it works as planned? Please advise and thank you.
Microsoft 365PowershellExchange

Avatar of undefined
Last Comment
Ivan

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Ivan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy