Try the following cmdlet
Get-DynamicDistributionGroup xyv@abc.com | Set-DynamicDistributionGroup -recipientfilter "((RecipientType -eq 'UserMailbox') -and (CustomAttribute10 -eq "On-Role") -and (HiddenFromAddressListsEnabled -eq "False"))"
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I wan to create one dynamic distribution group and members will be only enable id.
I tried this fail.
any input. we have nybrid configuration with office365
[PS] C:\Windows\system32>Get-DynamicDistributionGroup xyv@jaswant .com | Set-DynamicDistributionGroup -rec
ipientfilter (RecipientType -eq 'UserMailbox') -and (CustomAttribute10 -eq "On-Role") -and (HiddenFromAddressListsEnable
d -eq "False") }
At line:1 char:231
Try the following cmdlet
Get-DynamicDistributionGroup xyv@abc.com | Set-DynamicDistributionGroup -recipientfilter "((RecipientType -eq 'UserMailbox') -and (CustomAttribute10 -eq "On-Role") -and (HiddenFromAddressListsEnabled -eq "False"))"
You need to use '' rather ""
Set-DynamicDistributionGroup -Identity xyv@abc.com -RecipientFilter "(RecipientType -eq 'UserMailbox') -and (CustomAttribute10 -eq 'On-Role') -and (HiddenFromAddressListsEnabled -eq 'False')"
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.