logo
search
Tenant Migration

Fix Cross-Tenant Exchange Online Mailbox Migration Failures

Amos GikundaAmos Gikunda Oct 26, 2026 870 views

Question details

Administrators experience failures when attempting cross-tenant mailbox migrations between two Microsoft 365 tenants due to using incorrect on-premises configurations.

How to Fix Cross-Tenant Exchange Online Migration Failures
Product
Exchange Online
Device & OS
not provided
Scenario
Migrating mailboxes directly between two Exchange Online tenants without an on-premises Exchange server.
Observed behavior
Migration PowerShell scripts and commands like Set-WebServicesVirtualDirectory fail because they are designed exclusively for on-premises Exchange environments.
Before you start

Ensure you have global administrator or Exchange administrator privileges for both the source and target Microsoft 365 tenants before initiating the migration process.

Solution 1Recommended

Implement the Microsoft 365 Cross-Tenant Mailbox Migration Process

Apply the official tenant-to-tenant migration process instead of legacy on-premises Exchange commands.

When migrating between two Exchange Online environments without an on-premises Exchange server, standard IMAP and MRS Proxy configurations (like Set-WebServicesVirtualDirectory) will not work. You must establish a proper tenant-to-tenant organizational relationship.

1
Verify Exchange Online environment

Navigate to the Microsoft 365 admin center and verify that both the source and target tenants are strictly Exchange Online environments.

2
Discontinue on-premises commands

Stop using the 'Set-WebServicesVirtualDirectory' PowerShell command, as it is only applicable to on-premises servers and will trigger connectivity failures in Exchange Online.

3
Configure organizational relationships

Establish the required Azure AD applications and cross-tenant access settings between the source and target tenants following Microsoft's official cross-tenant migration guide.

4
Prepare the target tenant

Create MailUser objects in the target tenant and assign the appropriate Exchange Online PowerShell execution rights to the migration administrator accounts.

5
Execute the migration scripts

Run the authorized cross-tenant migration PowerShell scripts to initiate and finalize the mailbox transfers.

Implement the Microsoft 365 Cross-Tenant Mailbox Migration Process
Avoid IMAP Migration: IMAP migration is generally not recommended for tenant-to-tenant Microsoft 365 migrations as it does not preserve calendar data, contacts, and folder structures.
Free Microsoft Office alternative

Boost Your Team's Productivity with WPS Office

While managing complex Microsoft 365 migrations, consider providing your users with a lightweight, cost-effective alternative for their daily document needs. WPS Office offers seamless compatibility, a familiar interface, and cross-platform support to keep your business running smoothly during tenant transitions.

  1. 1. Download the software: Visit the official WPS Office website to download the free installation package for your operating system.
  2. 2. Install and deploy: Run the lightweight installer and follow the on-screen instructions to deploy the software across your users' devices.
  3. 3. Open existing files: Launch WPS Office and directly open existing Microsoft Office documents with zero formatting loss.
Highly compatible with Microsoft Word, Excel, and PowerPoint files (.docx, .xlsx, .pptx).Familiar, easy-to-use interface to minimize user training during tenant migrations.Lightweight installation with fast loading times for enhanced daily productivity.Built-in PDF editing tools combined with powerful cross-platform document collaboration.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Set-WebServicesVirtualDirectory command fail in Exchange Online?

This command is specifically designed for on-premises Exchange Server configurations. Exchange Online manages web services automatically in the cloud, so this command is neither applicable nor available for tenant administrators.

Can I use IMAP migration for a Microsoft 365 cross-tenant transfer?

While it is technically possible for basic email transfer, IMAP migration is highly discouraged for Exchange Online tenant-to-tenant migrations because it fails to migrate calendar events, tasks, contacts, and complex folder rules.

What permissions are required for a cross-tenant mailbox migration?

Administrators must configure Azure AD applications, assign specific Migration Administrator roles, and establish formal organizational relationships and security permissions between the source and target Microsoft 365 tenants.