exchange email policy variable (domain)


We have purchased some new domain names, 8 to be exact.
I now need to create a exchange email policy for these domain.
I can go through the wizard or create a custom address with the variables required for each domain but not all at once.

Is there a variable to create the email address for all the domain names selected in the first section of the policy.
Example "%1g.%s@alldomains"

LVL 5
dexterhomeAsked:
Who is Participating?
 
Sigurdur HaraldssonConnect With a Mentor System AdministratorCommented:
No. But you can do it once with the wizard, copy the Powershell command and run it for the other email policies after you change the domain name (given that you want to apply the same email policy to all the domains.
0
 
Hendrik WieseInformation Security ManagerCommented:
No you would have to create these on by one in your policy.

Cheers!!!
0
 
Sigurdur HaraldssonConnect With a Mentor System AdministratorCommented:
Something like this would probably (I haven't tested it) work. Just save it as a Powershell cmdlet and run in the EMS.

$DomainName =  Read-Host "Enter Domain Name:"

New-EmailAddressPolicy -Name $DomainName -IncludedRecipients “MailboxUsers”  -Priority “Lowest” -EnabledEmailAddressTemplates “SMTP:%g.%s@$DomainName”
0
 
dexterhomeAuthor Commented:
Thanks for your responses guys.

In the end I did just manually create them through the wizard with set options and then some custom addresses.

I only took me about 30 minutes once I got going so not as time consuming as first thought.

I will keep the info though in case I require it another time.

Thanks again.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.