Solved

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

Posted on 2014-11-05
2
154 Views
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$_.abcalias@abc.com to $_.defalias@def.com" -ExternalMessage "Please note: my email address has changed from $_.abcalias@abc.com to $_.defalias@def.com"}

Open in new window



Result:

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

The result I want is
Please note: my email address has changed from tpeter@abc.com to tom.peter@def.com

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

Any help appreciated.

Thanks,

Deorali
0
Comment
Question by:Deorali
2 Comments
 
LVL 16

Accepted Solution

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

Import-Csv c:\test1.csv | % {[string]$old=$_.abcalias+"@abc.com";[string]$new=$_.defalias+"@def.com";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

0
 
LVL 1

Author Closing Comment

by:Deorali
ID: 40424746
That worked. Thanks Rajitha.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exchange 2013 DL hack 4 31
Removing Exchange 2003 3 11
Exchange 2013 on premise  mailbox  issue 2 25
exchange 2007 1 6
Find out what you should include to make the best professional email signature for your organization.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

679 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