Good day!
May you help me - what's the error is here ?
$policyName = "MyNewBrand - EAP" $recepCont = $domain + "/CustomOU/" + $CustomAttr $enablesEmailAddTemp = "smtp:%1g.%s@" + $MyAnotherDomain New-EmailAddressPolicy -Name $policyName -Priority Lowest -ConditionalCustomAttribute1 $CustomAttr -IncludedRecipients "AllRecipients" -EnabledEmailAddressTemplates $enablesEmailAddTemp -EnabledPrimarySMTPAddressTemplate $enablesEmailAddTemp
I get an error:
Parameter set cannot be resolved using the specified named parameters.
+ CategoryInfo : InvalidArgument: (:) [New-EmailAddressPolicy], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,New-EmailAddressPolicy
What is the error here ? I have stuck over my head :-(.