Contact Creation w/o auto address e-mail address policy
My Exchange 2007 has a Exchange email address policies. I would like to uncheck the "automatically update e-mail addresses based on email address policy" and remove the secondary smtp address that was automatically created for all my (9000+) mail contacts.
From powershell the "Set-MailContact -Identity jdoe EmailAddressPolicyEnabled:$False" works for individual contacts however I want to apply this to all contacts in one go. I was hoping to be able to use something like "Get-MailContact -ResultSize Unlimited |Set-MailContact EmailAddressPolicyEnabled:$False" but i'm having trouble getting this working. Can someone assist with the syntax?
I wouldn't mind recreating the whole mail contacts but I, need a command to by deafult uncheck "automatically update e-mail addresses based on email address policy"
I haven't started looking at how to remove the secondary smtp address yet, again if anyone knows how to do this from powershell it would be appreciated.Thanks & Regards,Kiran
May 25th, 2009 1:24pm
Allen's response in below similar thread gives you insight on this...
http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/be652bc1-53ec-44cb-9945-d96dc9b6ad54
Here is the cmdlet to disable email address policy on all contacts... If you get any error while running this, post it here for further troubleshooting...
Get-MailContact -ResultSize Unlimited | Set-MailContact -EmailAddressPolicyEnabled:$false
Amit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
May 25th, 2009 1:43pm
Hi,Thanks for the quick response.I have already created the contacts, I dont mind deleting the contacts again.But when I, create a new contact that policy is updated on it, how can I stop it???Only the external address should be created.Regards,Kiran
May 25th, 2009 2:48pm
Hi Kiran,I wrote a script few years ago what is able to remove all proxyaddresses from all of the users. With some slite modifications you can use it for removing the unneeded addresses:http://gzoli.spaces.live.com/blog/cns!F9E7FFBC4B3008EB!240.entryRegards,Zoltnhttp://www.clamagent.org - Free Antivirus for Exchange
http://www.it-pro.hu
http://emaildetektiv.hu
Free Windows Admin Tool Kit Click here and download it now
May 25th, 2009 3:33pm
~ We can not set to stop email address policy to apply while creating new email contact (you would have seen that no parameter found in New-MailContact) this is by design and as Allen told in his response that we can create a dummy accepted domain and apply that policy to contacts to stop stamping email address with production domain email ids.
~ But you can create a script to create a contact, set the contact with -EmailAddressPolicyEnabled:$false and remove the production domain email id in the same time. You can use same while creating new contact from now onwards.
~ You can use ADModify.Net to delete production domain email address from contacts after setting EmailAddressPolicyEnabled:$false on all existing contacts.Amit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
May 25th, 2009 3:43pm