The Hot Blog

In hot blog, we blog hotfix right!

How to add proxy addresses with the same domain to existing Office 365 Exchange Online accounts

How to add proxy addresses with the same domain to existing Office 365 Exchange Online accounts

  • Comments 1
  • Likes

Title

How to add proxy addresses with the same domain to existing Office 365 Exchange Online accounts

 

Summary

This article gives an example of how to add proxy addresses with different aliases in the same domain to existing Office 365 Exchange Online accounts.

 

Assume we have an Office 365 Exchange Online user user1. The primary e-mail address is user1@abc.com and the user has another default email address user1@abc.onmicrosoft.com

We need to add testalias1@abc.com, testalias2@abc.com, and testalias3@abc.com as the proxy addresses to user1.

 1. Create a .CSV file to import proxy addresses:

alias,additionalname

user1,testalias1

user1,testalias2

user1,testalias3

 2. Write a script that resembles the following:

 

#-------------------------------------------------------------------------------

#

# Copyright (c) Microsoft Corporation. All rights reserved.

#

# PLEASE NOTE:

# Microsoft Corporation (or based on where you live, one of its affiliates)

# licenses this supplement to you. You may use it with each validly licensed

# copy of Microsoft Online Services Migration Tools software (the “software”).

# You may not use the supplement if you do not have a license for the software.

# The license terms for the software apply to your use of this supplement.

# Microsoft may provide support services for the supplement as described at

# http://www.support.microsoft.com/common/international.aspx.

#

#-------------------------------------------------------------------------------

 

$users = Import-Csv -Path "list.csv"

 

$users | ForEach-Object {

$userid = $_.alias

$newsecondaryname = $_.additionalname

$Temp = Get-Mailbox -identity $userid

$EmailAddress=$Temp.emailaddresses.Add("$($newsecondaryname)@abc.com")

$Temp | %{Set-Mailbox $_.identity -EmailAddresses $_.EmailAddresses}

}

 3. Save the script as Add-proxyaddress.ps1 under the same folder with the .CSV file.

 4. Follow the article to access Exchange Online through Powershell:

Connect Windows PowerShell to the Service

http://help.outlook.com/en-us/140/cc952755.aspx

 

5. Change the path to where the two files exist. Then run the Add-proxyaddress.ps1 by “.\Add-proxyaddress.ps1” cmdlet.

6Check if the proxy addresses are added correctly to user1.

 

More Information

Add Proxy Addresses to Many Users' Accounts with Windows PowerShell

http://help.outlook.com/en-us/140/cc967281.aspx

 

Proxy Addresses

http://help.outlook.com/en-us/140/cc511403.aspx

 

How can I add a proxy address in the csv file

http://outlookliveanswers.com/forums/t/4923.aspx

 

Import New Exchange Online Users with a CSV File

http://help.outlook.com/en-us/140/ms.exch.ecp.csvimportlearnmore.aspx

 

Applies To

Office 365 Exchange Online post deployment

Comments
Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment