Remove Seconday SMTP Address from Mail contact using powershell
Hi All I have 1000 Mail enabled contacts in which i have to remove the secondary SMTP address and Disable the Emailaddress policy option. I need to perform this task using powershell script. Any help in much appreciated Thanks RafiRafi
June 28th, 2011 8:16pm

On Tue, 28 Jun 2011 17:16:16 +0000, Amd_Rafi wrote: >I have 1000 Mail enabled contacts in which i have to remove the secondary SMTP address and Disable the Emailaddress policy option. I need to perform this task using powershell script. Any help in much appreciated I'd use set-mailcontact with the -EmailAddressPolicyEnabled:$false parameter first. If you can, add somthing distinctive to a custom attributre at the same time. To remove the secondary proxy addresses, I'd use admodify.net and use a custom LDAP query that keyed on the value you loaded into the custom attribute. How you'll know which 1000 contacts to modify I'll leave up to you. --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
June 29th, 2011 4:31am

Hi Rich Matheisen Thanks for your help- I did the below and it helped and saved my time. 1.Import-CSV c:/abc/Contact.csv | ForEach-Object{set-mailcontact -Identity $_."alias" -EmailAddressPolicyEnabled:$false} 2. Using Admodify.net removed the secondary SMTP address for the OU. Thanks a lot for you help.Rafi
June 29th, 2011 9:03am

Hi, I would mark the answer and close this thread if your problem has been solved.Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 30th, 2011 6:17am

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

Other recent topics Other recent topics