I'm trying to create a new address list using the following command.
New-AddressList -Name “My_AL” -RecipientFilter {((RecipientType -eq "UserMailbox") -or (RecipientType -eq “MailUniversalDistributionGroup”) -or (RecipientType -eq “DynamicDistributionGroup”)) -and (CustomAttribute1 -eq “MyOrg”)}
The system returns an error "Exception setting "RecipientFilter": "Invalid filter syntax" I cannot seem to figure out what is wrong with the syntax. Any help is appreciated.