?
Solved

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

Posted on 2014-11-05
2
Medium Priority
?
168 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
Rajitha Chimmani earned 2000 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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

762 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