New Dynamic Distrabution Group Error
I am trying to create a new dynamic distribution group with the following command let:
New-DynamicDistributionGroup -name 'test list' -Alias 'testlist' -DisplayName 'Test List' -ConditionalCustomAttribute 'PRC' - RecpientFilter {Title -ne 'Director'}
This command completes successfully if I omit the -Conditional Custom Attribute; however I need to be able to assign this at the time of creation so that the appropriate Recipient Policy is applied. Any ideas?
The Error that I get is:
New-DynamicDistrabution Group : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:29
+ New-DynamicDistrabutionGroup <<<< -name 'test list' -Alias 'testlist' -DisplayName 'Test List' -ConditionaCustomAttribute15 'PRC' -RecpientFilter {Title -ne 'Director'}
Any help is appreciated.GaryO
September 14th, 2009 10:24pm
In your example error the "ConditionalCustomAttribute" parameter is mispelled. I'm not sure if that might be the problem or maybe just a typo when recreating the error. Let me know if this helps.
Michael
Free Windows Admin Tool Kit Click here and download it now
September 14th, 2009 11:36pm
On Mon, 14-Sep-09 19:24:30 GMT, critter_admin wrote:>>>I am trying to create a new dynamic distribution group with the following command let: >> >>New-DynamicDistributionGroup -name 'test list' -Alias 'testlist' -DisplayName 'Test List' -ConditionalCustomAttribute 'PRC' - RecpientFilter {Title -ne 'Director'} The parameter isn't '-ConditionalCustomAttribute', it's: -ConditionalCustomAttribute1 -ConditionalCustomAttribute2 -ConditionalCustomAttribute3 . . . -ConditionalCustomAttribute15 [ snip ]>The Error that I get is: >New-DynamicDistrabution Group : Parameter set cannot be resolved using the specified named parameters. >>At line:1 char:29 >>+ New-DynamicDistrabutionGroup <<<< -name 'test list' -Alias 'testlist' -DisplayName 'Test List' -ConditionaCustomAttribute15 'PRC' -RecpientFilter {Title -ne 'Director'} >>Any help is appreciated.GaryO Spelling counts!!! You spelled New-DynamicDistibutionGroupincorrectly. There's no 'a' in 'distribution'.And, assuming you haven't made multiple typographical errors in thisposting, you also misspelled '-ConditionalCustomAttribute15' byleaving out the letter 'l'.---Rich MatheisenMCSE+I, Exchange MVP---
Rich Matheisen
MCSE+I, Exchange MVP
September 15th, 2009 12:18am
The typo's above are my poor attempt at recreating the command. When inputting I tabbed it out so that it would spell it correctly for me.
Free Windows Admin Tool Kit Click here and download it now
September 15th, 2009 6:18am
On Tue, 15-Sep-09 03:18:52 GMT, critter_admin wrote:>The typo's above are my poor attempt at recreating the command. When inputting I tabbed it out so that it would spell it correctly for me. You also misspelled "-RecipientFilter" as "-RecpientFilter". That anawful lot lot typos. If you're looking for help, try being a littlemore careful next time.Here's your answer (from the 'help' for theNew-DynamicDistributionGroup cmdlet): -RecipientFilter recipients that are used to build the dynamic distribution group.=> RecipientFilter cannot be used if any of the following parameters are specified: * IncludedRecipients * ConditionalCompany=> * ConditionalCustomAttribute N (where N is a value from 1 through 15) * ConditionalDepartment * ConditionalStateOrProvince RecipientFilter uses OPath syntax to query Active Directory and filter recipients. For more information about the filterable properties, see Filterable Properties for the -RecipientFilter parameter.To use a custom attribute AND another property in the selectioncriteria you'll have to use the "-RecipientFilter" property alone andinclude the necessary OPATH constructions.Oh, and don't forget the "-RecipientContainer" parameter, either. Ifyou're not specific about the starting point for your seach youprobably won't get the results you expect. Try to spell it correctly.:-)---Rich MatheisenMCSE+I, Exchange MVP---
Rich Matheisen
MCSE+I, Exchange MVP
September 16th, 2009 5:43am