I've been trying to use the RecipientContainer filter property (not parameter) in the RecipientFilter property of the New-AddressList cmdlet. An example:
New-AddressList -DisplayName "Test" -Name "Sentraladministrasjoen" -RecipientFilter {(RecipientContainer -eq "OU=test,OU=users,DC=dom,DC=dom2,DC=no")}
This command completes successfully, and I can apply it with the Update-AddressList cmdlet. But if I try to use the Preview button in EMC the MMC snap in crashes with this error:
Cannot convert value "dom.dom2.no/users/test" to type "Microsoft.Exchange.Data.Directory.ADObjectId". Error: "The string "dom.dom2.no/users/test" does not represent a valid distinguished name."
As you can see I supply the DN in the cmdlet, which is then converted to a CN in the filter. If I try to create the address list with a CN, it fails with the same error as EMC does.
Anyone know how to use the RecipientContainer filter property in this manner, or where I am going wrong?
Maybe there is another way to set the search root of an address list filter?
Morgan
Need to support users over the internet? click here try our remote control online beta




