Restoring a deleted mailbox in Exchange Online

An employee has left and their account was deleted, but it turns out there were important emails in their mailbox. As long as the mailbox is still soft-deleted, you can restore its contents into another mailbox, such as their manager's or a shared mailbox. You don't have to bring the old user back, and you don't need an extra license for the person who left.

Updated on 22 October 2026. Expanded with the difference between soft-deleted and inactive mailboxes, restoring the archive, the permissions you need, retention settings on the target mailbox, common errors and the current Exchange Online PowerShell module (V3).

When is it possible?

When you delete a user in Microsoft 365, their mailbox is kept for 30 days as a soft-deleted mailbox. After that it's gone for good. There's one important exception: if a retention policy or Litigation Hold applied to the mailbox, it becomes an inactive mailbox. That one is kept as long as the policy applies, and you can restore it too.

A deleted user in the Microsoft 365 admin center

The difference between soft and hard deletion is explained in delete a user in Microsoft 365: soft delete and hard delete.

Before you start

Restore the mailbox into another mailbox

  1. Connect to Exchange Online PowerShell with Connect-ExchangeOnline.
  2. Find the deleted mailbox and note its ExchangeGuid:
    Get-Mailbox -SoftDeletedMailbox | Select DisplayName, PrimarySmtpAddress, ExchangeGuid
  3. Find the ExchangeGuid of the target mailbox:
    Get-Mailbox manager@yourdomain.com | Select ExchangeGuid
  4. Start the restore, into a separate folder in the target mailbox:
    New-MailboxRestoreRequest -SourceMailbox <deleted-GUID> -TargetMailbox <target-GUID> -TargetRootFolder "Mailbox Jan" -AllowLegacyDNMismatch
  5. Follow the progress:
    Get-MailboxRestoreRequest | Get-MailboxRestoreRequestStatistics
Finding soft-deleted mailboxes with Get-Mailbox
Finding the ExchangeGuid of the target mailbox
Starting a MailboxRestoreRequest in PowerShell
Following the restore progress
The restored folder in the target mailbox in Outlook

With -TargetRootFolder everything lands neatly under one folder. Leave it out and the folders are merged into the target's existing folders, which gets confusing fast. Once the status shows Completed, clean up the request with Remove-MailboxRestoreRequest.

Restore the archive

Did the user have an online archive? Restore it separately with -SourceIsArchive. Add -TargetIsArchive if it should go into the target's archive, and always use a -TargetRootFolder, or the items end up in places the user can't see.

An inactive mailbox

Find inactive mailboxes with Get-Mailbox -InactiveMailboxOnly and use the DistinguishedName as the source. Microsoft recommends adding the inactive mailbox's LegacyExchangeDN to the target as an X500 address first, instead of using -AllowLegacyDNMismatch. Inactive mailboxes with an auto-expanding archive can't be restored this way.

Common problems

Alternatives

FAQ

Can I do this in the Exchange admin center?

No, restoring into another mailbox only works with PowerShell.

Does the deleted mailbox still exist after the restore?

Yes. A restore copies the content. The source stays soft-deleted until its retention period runs out.

Nederlandstalige versie: Verwijderde mailbox terugzetten in Exchange Online


Related articles