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.
Our community of experts have been thoroughly vetted for their expertise and industry experience.