×

Migrate M365 User Mailbox within Tenant

This article explains the process of legacy migration from one user of M365 to another user of M365 in the same tenant using Powershell without the use of any third party application. To perform this action you only need Admin rights and Powershell access.

Migrate M365 User Mailbox within Tenant

What is M365 within tenant or Legacy Migration?

Legacy migration in Office 365 refers to the process of moving or transitioning from one user of M365 to another user of M365 in the same tenant. This typically transfers all mail data including the In-Place archive. To perform this migration you need powershell. 

How it works

If any user leaves the organization, you can delegate access for that mailbox to another user, or you can export the data in a PST file. If you want to perform any migration you need a 3rd Party application for that. Here we will explain the process, without any third party application, how you can perform mail migration from one user account to another user account.

Benefits of Migration

It helps you to get the data shifted from one account to another account. And keep the data one handed and easily accessible.

Process

  1. Open Powershell through Admin rights and sign in to Exchange Online.

PSC: Connect-ExchangeOnline

  1. Get GUID of destination mailbox and Target mailbox.

PSC: Get-Mailbox -Identity sridevs@infiflexglobal.com | fl *ExchangeGuid

  1. Delete the Source mailbox from the M365 admin center. (To perform the migration, you need to soft delete the source mail ID first).

  1. After deleting the user, run the below command in Powershell. (Note: Before that collect the GUID for both the accounts)

PSC: New-MailboxRestoreRequest -SourceMailbox 32d99c60-15a2-48db-8055-95bf2a024373 -TargetMailbox 33465e38-d299-43cd-ae22-b5d191868f88 -AllowLegacyDNMismatch

Boom!!! Here you go, it started shifting all the mails from Source to target mailbox.




Trendy