How to restore deleted user mailboxes in Exchange Online

Restoring a deleted user mailbox in Exchange Online can be done using the Exchange Admin Center (EAC) or PowerShell. Here are the steps to restore a deleted user mailbox in Exchange Online using the EAC:

  1. Sign in to the Microsoft 365 admin center with your admin credentials.
  2. Go to the Exchange admin center by clicking on the Admin centers > Exchange.
  3. In the EAC, click on the Recipients > Mailboxes tab.
  4. Click on the three dots icon and select Connect another mailbox.
  5. In the Connect a mailbox dialog box, select “Restore deleted mailbox”.
  6. In the Select User or Group dialog box, search for and select the user whose mailbox you want to restore, and click OK.
  7. In the “Restore deleted mailbox” dialog box, specify the date range for which you want to restore the mailbox items.
  8. Click on the Restore button to restore the mailbox.

Alternatively, you can use PowerShell to restore a deleted user mailbox in Exchange Online. Here are the steps to do it:

  1. Connect to Exchange Online PowerShell using your admin credentials.
  2. Run the following command to restore the deleted mailbox:New-MailboxRestoreRequest -Identity <MailboxIdentity> -TargetMailbox <TargetMailbox> -SourceDatabase <SourceDatabase> -AllowLegacyDNMismatchReplace <MailboxIdentity> with the user’s email address, <TargetMailbox> with the target mailbox where you want to restore the deleted mailbox, and <SourceDatabase> with the name of the database where the deleted mailbox was stored.The -AllowLegacyDNMismatch parameter allows you to restore the mailbox even if the legacyExchangeDN value of the restored mailbox does not match the legacyExchangeDN value of the original mailbox.
  3. Once the command is executed, the mailbox restore request will be created and you can check its status by running the following command:Get-MailboxRestoreRequest | flThis command will display information about all the mailbox restore requests that are currently running or completed.

That’s it! With these steps, you can easily restore a deleted user mailbox in Exchange Online using either the EAC or PowerShell.