I am attempting to create some Dynamic Distribution lists on Exchange 2010, but I am having some difficulties.
What I am trying to do is create the lists based on the division each user is in ie "E - Full Time" the attribut is in AD and is listed in the attribute editor, but I cannot seem to find a way to index it with the command line:
[PS] C:\Windows\system32>New-DynamicDistributionGroup -Name "test2" -RecipientFilter {(RecipientType -eq 'UserMailbox') -and (division -like 'A- Officer')}
It pukes with the following error:
Invoke-Command : Cannot bind parameter 'RecipientFilter' to the target. Exception setting "RecipientFilter": ""division" is not a recognized filterable property. For a complete list of filterable properties see the command help."(RecipientType -eq 'UserMailbox') -and (division -like 'A- Officer')" at position 41." C:\Users\someuser\AppData\Roaming\Microsoft\Exchange\RemotePowerShell\server.domain.com\server-p.domain.com.psm1:26024 char:29
+$scriptCmd = { & <<<< $script:InvokeCommand `
+ CategoryInfo : WriteError: (:) [New-DynamicDistributionGroup], ParameterBindingException
+ FullyQualifiedErrorId
It would seem to me that if it is a queryable attribute in the LDAP it should be able to be used as a search term from the exchange console.
ANy help would be appreciated.
David Qualls