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:
- Sign in to the Microsoft 365 admin center with your admin credentials.
- Go to the Exchange admin center by clicking on the Admin centers > Exchange.
- In the EAC, click on the Recipients > Mailboxes tab.
- Click on the three dots icon and select Connect another mailbox.
- In the Connect a mailbox dialog box, select “Restore deleted mailbox”.
- In the Select User or Group dialog box, search for and select the user whose mailbox you want to restore, and click OK.
- In the “Restore deleted mailbox” dialog box, specify the date range for which you want to restore the mailbox items.
- 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:
- Connect to Exchange Online PowerShell using your admin credentials.
- 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.
- 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.