I seem to get problems with hasactivesyncdevicepartnership. I get the following error.
Invoke-Command : Cannot bind parameter ‘Filter’ to the target. Exception setting “Filter”: “Invalid filter syntax. For
a description of the filter parameter syntax see the command help.
“hasactivesyncdevicepartnership -eq $true -and -not displayname -like “CAS_{*”" at position 70.”
At C:\Users\jack\AppData\Roaming\Microsoft\Exchange\RemotePowerShell\exchangeserver.domain01\exchangeserver.domain01.local.psm1:9466 char:29
+ $scriptCmd = { & <<<< $script:InvokeCommand `
+ CategoryInfo : WriteError: (:) [Get-CASMailbox], ParameterBindingException
+ FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.Exchange.Management.RecipientTasks.GetCASMailbox