Powershell to  change of addresses notification for bulk users using OOO in Exchange 2010

Posted on 2014-11-05
Last Modified: 2014-11-05
Hi Exchange Powershell expert,

Exchange 2010

I am trying to configure OOO to notify  of change of addresses for a group of users.

test1.csv contains two columns:
 abcalias, defalias
      tpeter , tom.peter

Here is the PS script I am using :

Import-Csv c:\test1.csv | % {Set-MailboxAutoReplyConfiguration $_.abcalias -AutoReplyState enabled -InternalMessage "Please note: my email address has changed from$ to $" -ExternalMessage "Please note: my email address has changed from $ to $"}

Open in new window


Please note: my email address has changed from@{abcalias=tpeter; defalias=tom.peter} to @{abcalias=tpeter; deflias=tom.peter}

The result I want is
Please note: my email address has changed from to

I am not using the transport rule because it involves only certain number of users.

Any help appreciated.


Question by:Deorali
LVL 16

Accepted Solution

Rajitha Chimmani earned 500 total points
ID: 40424708
I would add within the csv file itself or you need to add two lines to the code.

Import-Csv c:\test1.csv | % {[string]$old=$_.abcalias+"";[string]$new=$_.defalias+"";Set-MailboxAutoReplyConfiguration $_.abcalias -AutoReplyState enabled -InternalMessage "Please note: my email address has changed from $old to $new" -ExternalMessage "Please note: my email address has changed from $old to $new"}

Open in new window


Author Closing Comment

ID: 40424746
That worked. Thanks Rajitha.

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now