Forum Discussion
np123
Nov 17, 2025Copper Contributor
Update Dynamic Distribution List
we are a hybrid environment, running exchange 2019 and have a few DDLs which have been around from previous exchange versions. One of the DDLs i need to modify is the below. Its hard to read and i am...
VasilMichev
Nov 18, 2025MVP
You can ignore anything after this bit:
((((((((((((((((((((((((((Company -eq 'Contoso') -and (CustomAttribute4 -eq 'City'))) -and (((((CustomAttribute7 -eq 'Group') -or (CustomAttribute7 -eq 'Contractor'))) -or (CustomAttribute7 -eq 'Permanent'))))) -and (((RecipientType -eq 'UserMailbox') -or (((RecipientType -eq 'MailUser') -and (CustomAttribute12 -ne 'Excluded')))))))
as it will be added back after you make the changes. For the above, cleanup the parenthesis, and make sure the correct grouping is used between the individual clauses, then append another -or with the desired changes.