Forum Discussion
gnussbaum
Dec 30, 2022Copper Contributor
creating a dynamic distribution group with a RecipientFilter of 'Description'
I'm trying to create a dynamic distribution group of full-time employees. Their status is in the user's account description. I've tried the following to no avail: New-DynamicDistributionGroup -Na...
Rene_Gross
Jan 04, 2023Iron Contributor
gnussbaum hello, maybe this helps:
- i have only exchange on-prem
New-DynamicDistributionGroup -Name "DDL-Test" -Alias DDL-Test -OrganizationalUnit "yourAdDomain/yourOU/yourOUforSavingDistributingList" -RecipientFilter {((RecipientTypeDetails -eq 'UserMailbox') -and (Description -eq 'Employee'))} -RecipientContainer "yourAdDomain/yourOU/OUwithUsers"
- you dont need Parameter "-RecipientContainer", if your scope is the entire AD
- i didnt do this with the description field, but can test this in the next few days
- if you have exchange online would say is the same, but not sure
best wishes
René
gnussbaum
Jan 04, 2023Copper Contributor
thanks René. I don't think you can do this with Exchange Online because the OU points to the one in the online portal, not on-prem.