Microsoft 365 Migration

Fix Alias Imports During an Exchange 2010 to Microsoft 365 Migration

Huda QurayshiHuda Qurayshi Nov 25, 2026 868 views

Question details

The user needs to migrate Exchange 2010 mailboxes to Microsoft 365 and import email aliases without errors caused by empty CSV values or missing recipients.

Fix Alias Imports During an Exchange 2010 to Microsoft 365 Migration
Product
Microsoft Exchange Server 2010 and Exchange Online in Microsoft 365
Device & OS
not provided
Scenario
An administrator is planning a mailbox migration and processing a CSV containing many email aliases.
Observed behavior
PowerShell encounters empty email values or cannot find recipient objects when attempting to import aliases.
Before you start

Confirm that you have the required Exchange administration permissions and that the target tenant accepts the domains used by the aliases. Check whether recipient attributes are managed in Exchange Online or synchronized from on-premises Active Directory.

Solution 1Recommended

Validate the CSV and add aliases to existing Exchange Online mailboxes

Use this approach when the target mailboxes already exist and their email addresses are managed in Exchange Online.

The example expects one alias per row in a CSV with Identity and Alias columns. Identity must uniquely identify an existing target mailbox, and Alias must contain a complete email address.

Use the lowercase smtp: prefix for secondary addresses. Check that each address is valid, uses an accepted domain, and is not already assigned to another recipient.

1
Clean the CSV

Open the CSV in a spreadsheet editor and check the Identity and Alias column headers. Remove rows with blank identities or aliases, trim extra spaces, and review duplicate or incomplete addresses.

2
Connect to Exchange Online

Open PowerShell, load the Exchange Online PowerShell module, and run Connect-ExchangeOnline. Sign in with an account authorized to manage the target mailboxes.

3
Check target mailboxes

Run Import-Csv 'C:\aliases.csv' | ForEach-Object { Get-Mailbox -Identity $_.Identity -ErrorAction Continue } after replacing the path with your CSV file. Investigate missing or ambiguous identities before importing their aliases.

4
Preview the alias changes

After correcting the CSV, run: Import-Csv 'C:\aliases.csv' | ForEach-Object { Set-Mailbox -Identity $_.Identity.Trim() -EmailAddresses @{Add=('smtp:' + $_.Alias.Trim())} -WhatIf }. The WhatIf parameter previews changes without applying them.

5
Apply and verify

If the preview is correct, rerun the same Set-Mailbox command without -WhatIf. Then run Get-Mailbox -Identity 'user@example.com' | Format-List EmailAddresses for affected mailboxes and review any errors.

Validate the CSV and add aliases to existing Exchange Online mailboxes
Synchronized recipients: If the recipient is directory-synchronized, manage its proxy addresses in the on-premises authoritative directory or Exchange environment, then allow synchronization to update Microsoft 365. The Set-Mailbox example is for cloud-managed mailboxes.
Free Microsoft Office alternative

Review Migration Alias Lists with WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface for reviewing CSV migration lists. Its Microsoft Office format compatibility makes it easy to move spreadsheet work between applications; Exchange migration and PowerShell commands still require Microsoft tools.

Review alias and mailbox identity columns before an Exchange importOpen and edit CSV files used by PowerShellWork with Microsoft Excel XLSX files for easy spreadsheet migrationUse a familiar, easy-to-navigate spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does PowerShell say a recipient cannot be found?

The Identity value may be blank, misspelled, ambiguous, or refer to a mailbox that does not yet exist in the target tenant. Check it with Get-Mailbox -Identity in a connected Exchange Online PowerShell session.

How should I handle blank email addresses in the CSV?

Open the CSV and remove or correct rows with empty Alias values before running Set-Mailbox. Also check for cells containing only spaces.

Will adding an alias overwrite the existing addresses?

The Set-Mailbox -EmailAddresses @{Add='smtp:alias@example.com'} syntax adds a secondary address rather than replacing the address list. Use -WhatIf first and verify the result with Get-Mailbox.

Can I update aliases directly in Exchange Online for synchronized mailboxes?

For directory-synchronized recipients, update proxy addresses in the authoritative on-premises environment and allow directory synchronization to carry the change to Microsoft 365.

Does uploading a PST create the mailbox aliases?

No. PST import moves mailbox data using a mapping workflow; check and manage recipient email addresses separately in the appropriate Exchange environment.