Recovering deleted mailbox using PowerShell

September 29, 2017 | by iaur | posted as Administration, Exchange Online


  • You have a former member(usera) and would like to restore the mailbox to a different active user (admin)
  • Usera has not been unlicensed for more than 30 days, otherwise its mailbox has been permanently deleted

usera = deleted mailbox alias

admin = active user alias


  1. Connect to EXO using PowerShell
  2. Run the following cmldets one at a time
Get-Mailbox -SoftDeletedMailbox usera | fl
This is to check if the usera mailbox still exist or within EXO’s retention
Get-Mailbox admin | Format-List ExchangeGUID
Take note of the value
Get-Mailbox -SoftDeletedMailbox usera | Format-List ExchangeGUID
Take note of the value
New-MailboxRestoreRequest -SourceMailbox “usera ExchangeGUID” -TargetMailbox “admin ExchangeGUID” -AllowLegacyDNMismatch -Verbose
– ” is not included
– this imply data loss scenario as it will replace the Exchange GUID of the target user


Feedback or Help?

Should you have one, click here

Boring Ads. Pardon me :)