i am trying to create a new DL and it shows error . could anyone please help?
$DDL = “”
$Alias = “”
$OU = “”
New-DynamicDistributionGroup -Name $DDL -Alias $Alias -OrganizationalUnit $OU -RecipientFilter ((RecipientTypeDetails -eq 'UserMailbox') -and (Office -eq 'Decentralized - Chile, Santiago') -or (Office -eq 'Decentralized - Farmingdale, NY') -or (Office -eq 'Decentralized - Peru, Lima') -or (Office -eq 'Decentralized - Philadelphia') -or (Office -eq 'Decentralized - San Antonio') -or (Office -eq 'Decentralized - San Diego') -or (Office -eq 'Decentralized - Sugar Land') -or (Office -eq 'Decentralized - San Francisco') -or (Office -like 'Decentralized - US,*') -or (Office -like 'Decentralized - Chile, Santiago') -or (Office -like 'Decentralized - Chile, Santiago') -and (-not(Office -like ‘Decentralized - Brazil, Sao Paulo’)) -and (-not(Office -like ‘Decentralized - Colombia, Bogota’)) -and (-not(Office -like ‘Decentralized - Peru, Lima’)) -and (-not(Office -like ‘Decentralized - Mexico, Mexico City’)) -and (-not(Office -like ‘Decentralized - Argentina, Buenos Aires’)) -and (-not(Name -like ‘SystemMailbox{*’)) -and (-not(Name -like ‘CAS_{*’)) -and (-not(RecipientTypeDetailsValue -eq ‘MailboxPlan’)) -and (-not(RecipientTypeDetailsValue -eq ‘DiscoveryMailbox’)) -and (-not(RecipientTypeDetailsValue -eq ‘PublicFolderMailbox’)) -and (-not(RecipientTypeDetailsValue -eq ‘ArbitrationMailbox’)) –and (-not(RecipientTypeDetailsValue -eq ‘AuditLogMailbox’)) -and (-not(RecipientTypeDetailsValue -eq ‘AuxAuditLogMailbox’)) -and (-not(RecipientTypeDetailsValue –eq ‘SupervisoryReviewPolicyMailbox’)))


