Forum Discussion
Dynamic Distribution Group issue in Hybrid Exchange Setup
- Jul 02, 2020
We finally able to solve this issue while working with Office 365 Support. It has taken a long time due to ping pong between on premises and Exchange Online teams. Anyway, after digging a while - solution turned out be an attribute issue, which solved our problem.
1. we re-run the Hybrid configuration wizard then following command was run on affected Dynamic Distribution Group.
Set-DynamicDistributionGroup DDG1@abc.com -RequireSenderAuthenticationEnabled $false
Hopefully, it may help someone out there. Thanks.
Ashkb and PeterRising
Thanks for your replies guys. Well, when i am running below command as per the article.
Set-DynamicDistributionGroup -Identity DDG1@abc.com -IncludedRecipients "MailboxUsers,MailContacts" -RecipientFilter {((RecipientType -eq 'UserMailbox' -or 'MailUser' -or 'MailContact'))}
I am getting this error:
"Cannot bind parameter 'RecipientFilter' to the target. Exception setting "RecipientFilter": "Invalid filter syntax.
For a description of the filter parameter syntax see the command help.
"((RecipientType -eq 'UserMailbox' -or 'MailUser' -or 'MailContact'))" at position 39."
+ CategoryInfo : WriteError: (:) [Set-DynamicDistributionGroup], ParameterBindingException
+ FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.Exchange.Management.RecipientTasks.SetDynamicDistributi
onGroup"
Please suggest the correct Syntax of command. Thanks.
To add more info, yes; this command is returning - correct members of the Dynamic Distribution Group.
$FTE = Get-DynamicDistributionGroup "Full Time Employees"
Get-Recipient -RecipientPreviewFilter $FTE.RecipientFilter -OrganizationalUnit $FTE.RecipientContainer
Thanks.