How to add proxy addresses with the same domain to existing Office 365 Exchange Online accounts
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
# https://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
https://help.outlook.com/en-us/140/cc952755.aspx
5. Change the path to where the two files exist. Then run the Add- proxyaddress.ps1by “ .\ Add- proxyaddress.ps1” cmdlet.
6 . Check if the proxy addresses are added correctly to user1.
More Information
Add Proxy Addresses to Many Users' Accounts with Windows PowerShell
https://help.outlook.com/en-us/140/cc967281.aspx
Proxy Addresses
https://help.outlook.com/en-us/140/cc511403.aspx
How can I add a proxy address in the csv file
https://outlookliveanswers.com/forums/t/4923.aspx
Import New Exchange Online Users with a CSV File
https://help.outlook.com/en-us/140/ms.exch.ecp.csvimportlearnmore.aspx
Applies To
Office 365 Exchange Online post deployment
Comments
- Anonymous
July 31, 2012
Wonderful information. Good to know this valuable article. <a href="http://www.voyance-conseil.eu">voyance pure</a>