ProliantFan
Technical User
HI
I'm trying to add a filter to my all users distribution list. We use exchange 2007 sp1
We have a dynamic distribution group made in the exchange management console thats is filterd for all recipient type on the OU users. I would like to exclude 1 group of users from the all users list and i've been looking around and eventualy came up with this.
Set-DynamicDistributionGroup all -RecipientFilter {MemberOfGroup -not 'CN=Name of group,OU=Distribution Groups,OU=Groups,DC=domain,DC=local'}
But for some reason this will not work i get the following error:
Set-DynamicDistributionGroup : Cannot bind parameter 'RecipientFilter' to the t
arget. Exception setting "RecipientFilter": "Invalid filter syntax. For a descr
iption of the filter parameter syntax see the command help.
"MemberOfGroup -not 'CN=name of group,OU=Distribution Groups,OU=Groups,DC=domain,DC=local'" at position 15."
At line:1 char:50
+ Set-DynamicDistributionGroup all -RecipientFilter <<<< {MemberOfGroup -not 'CN=name of group,OU=Distribution Groups,OU=Groups,DC=domain,DC=local'}
Does anyone have a suggestion?
I'm trying to add a filter to my all users distribution list. We use exchange 2007 sp1
We have a dynamic distribution group made in the exchange management console thats is filterd for all recipient type on the OU users. I would like to exclude 1 group of users from the all users list and i've been looking around and eventualy came up with this.
Set-DynamicDistributionGroup all -RecipientFilter {MemberOfGroup -not 'CN=Name of group,OU=Distribution Groups,OU=Groups,DC=domain,DC=local'}
But for some reason this will not work i get the following error:
Set-DynamicDistributionGroup : Cannot bind parameter 'RecipientFilter' to the t
arget. Exception setting "RecipientFilter": "Invalid filter syntax. For a descr
iption of the filter parameter syntax see the command help.
"MemberOfGroup -not 'CN=name of group,OU=Distribution Groups,OU=Groups,DC=domain,DC=local'" at position 15."
At line:1 char:50
+ Set-DynamicDistributionGroup all -RecipientFilter <<<< {MemberOfGroup -not 'CN=name of group,OU=Distribution Groups,OU=Groups,DC=domain,DC=local'}
Does anyone have a suggestion?