Forum Discussion
Dynamic Distribution Group issue in Hybrid Exchange Setup
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.
19 Replies
- AshkbBrass Contributor
Thank you for all 3 previous replies.
First I would request you to check if the https://support.microsoft.com/en-gb/help/3061396/members-of-a-dynamic-distribution-group-in-an-exchange-hybrid-deployme already shared if the filtering properties are working properly.
Also, run following commands on EMS
$FTE = Get-DynamicDistributionGroup "Full Time Employees"
Get-Recipient -RecipientPreviewFilter $FTE.RecipientFilter -OrganizationalUnit $FTE.RecipientContainerto check if it returns the results as expected.
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.
Try this command instead,
Set-DynamicDistributionGroup -Identity DDG1@abc.com -RecipientFilter {(RecipientType -eq 'UserMailbox') -or (RecipientType -eq 'MailUser') -or (RecipientType -eq 'MailContact')}
Yes, I have done that and tested it as mentioned in this link: https://www.itpromentor.com/dynamic-groups-hybrid/
but getting same error.
Thanks.