Hey all:
I'm trying to modify a dynamic list with the following data. The command keeps failing with the error;
Invoke-Command : Cannot bind parameter 'RecipientFilter' to the target. Exception setting "RecipientFilter": """ is not
a valid operator. For a list of supported operators see the command help.
"((((Office -eq 'East Coast Campus') -or (((((Description -like 'East Coast*') -and (-not(Name -like 'SystemMailbox{*')))) -and (-not(Name -like 'CAS_{*')))))) -and (-not (RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')))" at
position 103."
At C:\Users\me\AppData\Roaming\Microsoft\Exchange\RemotePowerShell\serv.corp\server.corp.psm1:47335 char
:29
+ $scriptCmd = { & <<<< $script:InvokeCommand `
+ CategoryInfo : WriteError: (:) [Set-DynamicDistributionGroup], ParameterBindingException
+ FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.Exchange.Management.RecipientTasks.SetDynamicDistributi
onGroup
Here is the command. Any help will be appreciated!
Set-DynamicDistributionGroup -Identity 'testddl' -RecipientFilter {((((Office -eq 'East Coast Campus') -or (((((Description -like 'East Coast*') -and (-not(Name –like 'SystemMailbox{*')))) -and (-not(Name -like 'CAS_{*')))))) -and (-not (RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')))}