How to add a New Primary SMTP address and disable Email Address Policy Checkbox
Hi,
We are using Exchange 2007 SP1/Windows 2003
I need to change the Primary SMTP address of around 600 users, their existing Primary SMTP address should be the secondary SMTP address and disable the Check box "Automatically update Email Addresses based on email address policy".
I am looking for a Shell script to do this task more efficiently without doing it manually.
Kindly Suggest.
Regards
Supreet Singh
November 14th, 2010 7:55am
On Sun, 14 Nov 2010 12:53:48 +0000, Supreet.Singh wrote:
>We are using Exchange 2007 SP1/Windows 2003
>
>I need to change the Primary SMTP address of around 600 users, their existing Primary SMTP address should be the secondary SMTP address and disable the Check box "Automatically update Email Addresses based on email address policy".
The first question that pops up in my mind is "why can't you use
policies to assign the addresses?"
>I am looking for a Shell script to do this task more efficiently without doing it manually.
.. . . which is why policies would be the way to deal with this.
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
November 14th, 2010 12:14pm
Hi,
An easy way to do this job:
1. Create a new E-mail Address Policies and apply to your users. After applying the E-mail address though
E-mail Address Policy, the new SMTP address will be set to Default SMTP Address automatically. And the old STMP address will be the secondary SMTP address.
2. Run the following script to disable "Automatically update Email Addresses based on email address
policy" for the mailbox users:
Get-mailbox| set-mailbox –emailAddressPolicyEnabled $false
Note: Get-mailbox command collects
all your mailbox enabled users in your organization. Then the set-mailbox disables the “Automatically
update Email Addresses based on email address policy" option of these users.
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. Thanks
Gen Lin-MSFT
November 17th, 2010 1:49am
Hi Supreet,
How troubleshoot is going on?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. Thanks Gen Lin-MSFT
Free Windows Admin Tool Kit Click here and download it now
November 25th, 2010 9:02pm