Link to home
Start Free TrialLog in
Avatar of Christian Hans
Christian HansFlag 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.
ASKER CERTIFIED SOLUTION
Avatar of Ivan
Ivan
Flag of Serbia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial