Quantcast
Channel: Exchange Server 2013 - General Discussion forum
Viewing all articles
Browse latest Browse all 4521

Cannot create email address policy in Exch2013

$
0
0

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 :-(.




Viewing all articles
Browse latest Browse all 4521

Trending Articles