Email Address Policy Syntax
Hello,
Is the syntax valid for both these commands which create a new email address policy named US?
New-EmailAddressPolicy -Name 'US' -EnabledEmailAddressTemplates 'SMTP:%2g%s@contoso.com' -RecipientFilter {(((RecipientType -eq 'UserMailbox') -and (database -eq 'mailserver\sg\db') -and (customattribute15 -eq 'US')))}
New-EmailAddressPolicy -Name 'US' -EnabledEmailAddressTemplates 'SMTP:%2g%s@contoso.com' -RecipientFilter {(RecipientType -eq 'UserMailbox') -and (database -eq 'mailserver\sg\db') -and (customattribute15 -eq 'US')}
Thanks
August 10th, 2011 9:44pm
It looks good to me. what is challange you are facing here. If you have doubts about parameter then you can create it thru EMC and in last window you can see cmdlet.
Understanding E-Mail Address Policies::
http://technet.microsoft.com/en-us/library/bb232171.aspx
Create an E-Mail Address Policy:
http://technet.microsoft.com/en-us/library/bb125137.aspxAnil MCC 2011,ITIL V3,MCSA 2003,MCTS 2010, My Blog : http://messagingschool.wordpress.com
Free Windows Admin Tool Kit Click here and download it now
August 10th, 2011 11:09pm
Hi
You can find syntax from this web page.
http://technet.microsoft.com/en-us/library/bb738157(EXCHG.80).aspx
CustomAttribute15
extensionAttribute15
This property contains a custom attribute that you can add to a recipient.
·
String
·
Wildcard character accepted
Database
homeMDB
This property contains the mailbox database.
·
Mailbox database
·
Identity
·
DN
RecipientType
Not applicable
This property specifies the recipient type.
·
UserMailbox
·
MailUser
·
MailContact
·
MailUniversalDistributionGroup
·
MailUniversalSecurityGroup
·
MailNonUniversalGroup
·
DynamicDistributionGroup
·
PublicFolder
One example :
New-EmailAddressPolicy -Name
"Test Policy Name" -recipientFilter { ((RecipientType -eq 'UserMailbox') -and (database -eq 'CN=Mailbox Database,CN=First Storage Group,CN=InformationStore,CN=TESTSERVER,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative
Groups,CN=um,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=testdomain,DC=com')) } -EnabledEmailAddressTemplates SMTP:@testdomainA.com,smtp:%g.%s@testdomainB.com
August 11th, 2011 10:20pm