How to disable emailAddressPolicy in powershell
Hi guys, I'd like to know if it is possible to create a new-mail and disable the emailAddressPolicy as option... the mailbox is created but i want to be able to add the smtp in the powershell command. Any idea? Thx
November 26th, 2009 5:50pm

You could pipe the new-mailbox command to set-mailbox andset EmailAddressPolicyEnabledto $falsehttp://technet.microsoft.com/en-us/library/bb123981.aspxSet-Mailbox
Free Windows Admin Tool Kit Click here and download it now
November 26th, 2009 5:54pm

I tried it and when it created my mailbox the policy is applyied and i have smtp addresses...
November 26th, 2009 6:41pm

Well, it has to give the mailbox at least one SMTP address, otherwise it wouldnt be mail-enabled. You'll have to set the email address you want with the set-mailbox command after you set the emailaddresspolicy to false.
Free Windows Admin Tool Kit Click here and download it now
November 26th, 2009 6:53pm

See below for same In some scenarios you might want to have the SMTP proxy addresses managed via a separate provisioning tool used in the IT service desk. If this is the case, you might need to disable the Automatically update e-mail addresses based on email address policy option found on the E-Mail Addresses tab on the property page of an Exchange 2007 user mailbox (Figure 8 ). If your organization consists of several thousand user mailboxes, you do of course not want to do this via the Exchange Management Console (EMC), since the EMC doesnt allow you to make this type of change on user mailboxes in bulk. Okay, so what do I do in this situation then? Well you turn to the Exchange Management Shell and run a one-liner command. For example, if you want to disable this option on all Exchange 2007 user mailboxes, you could use the following command: Get-Mailbox | Set-Mailbox -EmailAddressPolicyEnabled $False If you instead prefer to do this per mailbox server, you would use: Get-Mailbox Server Mailbox Server | Set-Mailbox -EmailAddressPolicyEnabled $False Or perhaps you want to do so for users in a specific OU: Get-Mailbox OrganizationalUnit Name of OU | Set-Mailbox -EmailAddressPolicyEnabled $False http://www.msexchange.org/articles_tutorials/exchange-server-2007/management-administration/managing-email-address-policies.htmlVinod |CCNA|MCSE 2003 +Messaging|MCTS|ITIL V3|
November 27th, 2009 9:01am

Resources: Looking for a Powershell cmdlet to change Contacts email addresses Mail Contacts and Default E-mail address PolicyJames Luo TechNet Subscriber Support (http://technet.microsoft.com/en-us/subscriptions/ms788697.aspx) If you have any feedback on our support, please contact tngfb@microsoft.com
Free Windows Admin Tool Kit Click here and download it now
November 30th, 2009 6:36am

Hi, Try this one ... Get contacts Detail and create .csv file. named Contacts.csv with two columns Name and PrimarySmtpAddress then run this script Import-CSV "C:\Contacts.CSV" | ForEach-Object {Set-MailContact -Identity $_.Name -EmailAddressPolicyEnabled $False Set-MailContact -Identity $_.Name -PrimarySmtpAddress $_.PrimarySmtpAddress Set-MailContact -Identity $_.Name -EmailAddressPolicyEnabled $True }
June 24th, 2011 2:53pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics