Forum Discussion
TaranjeetSM11
Oct 11, 2023Tin Contributor
Valid Comparison Operators for -RecipientFilter parameter while creating DDL in Exchange Online
Hi I'm working to build Dynamic Distribution Groups in Exchange Online that require filtering the recipients based on custom attributes and values of those attributes are in the format <something De...
Andres-Bohren
Oct 11, 2023Steel Contributor
Did you try -like or -notlike as comparsion operators?
TaranjeetSM11
Oct 11, 2023Tin Contributor
Yes, but they do not allow a wildcard character as a prefix. For example, I can't specify a value such as "*Depatrment1" to -like. That's not allowed by Exchange Online.
- VasilMichevOct 11, 2023MVPOnly property values allow for use of wildcards, not the property names themselves. And you cannot use -match, as regex is not supported.