Single Mailbox Restore with Exchange 2013 Recovery Database

First Restore the Exchange database as a flat file:

 

  1. Load the Exchange Backup.
  2. Choose the mailbox database and log files and click “Action” / “Restore.”
  3. Check “Restore Files to Non-Exchange Folder.”
  4. Type in or browse to the target location.
  5. Click “Next.”
  6. Click “Restore.”

 

Once the recovery is complete, the database (EDB file) and transaction logs (LOG files) will reside in the path specified in Step 4 above..

 

  1. Add the restored database to the Exchange mailbox server as a Recovery Database. This is performed using the Exchange Management Shell (EMS).
    • New-MailboxDatabase -Recovery -Name RESTORE1 -Server EXA2013 –EdbFilePath “C:\restore\Mailbox Database 1882717321.edb” -LogFolderPath “C:\Restore”

 

A new Recovery Database titled RESTORE1 will be created on server EXA2013 using the restored database and logs in C:\Restore.

 

Once the command is run, the Recovery Database will appear in the Exchange Management Console (EMC).

 

NOTE:The Recovery Database must be brought into a clean shutdown state before it can be mounted.

 

To bring the database into a clean shutdown state, use ESEUTIL /R to perform a recovery of the database.

 

NOTE: If Exchange is unable to perform a successful recovery, a full list of options can be found at the following link:

http://technet.microsoft.com/en-us/library/bb125218.aspx

 

Mount the database using.

  • Mount-Database “Database Name”
Recovering a mailbox, overwriting the existing mailbox

This example restores a mailbox for user UltraBac User1, overwriting the existing mailbox:

In the Exchange Management Shell type:

New-MailboxRestoreRequest -SourceDatabase RecoveryDB -SourceStoreMailbox “UltraBac User1” -TargetMailbox UltraBac.User1 -AllowLegacyDNMismatch

Restoring a Inbox and all subfolders, to a different folder

This example restores ‘UltraBac User2’ mailbox content into a folder named “Restored Items”:

In the Exchange Management Shell type:

New-MailboxRestoreRequest -SourceDatabase RecoveryDB -SourceStoreMailbox “UltraBac User2” -TargetMailbox UltraBac.User2 -TargetRootFolder “Restored Items” -IncludeFolders “#Inbox#/*”

Usefull Commands:

To verify the recovered database is mounted, run the following command;

  • Get-MailboxDatabase -status “<Database Name>” | fl Mounted

 

To view the Mailboxes within the database, run the following command:

  • Get-MailboxStatistics -Database ‘<Database Name>” -Recovery

 

To check the status of your Mailbox restore, run the following command:

  • Get-MailboxRestoreRequestStatistics -Identity “<MailboxUser\RestoreRequestName>”

 

To restore a mailbox using the GUID, run the following command:

  • New-MailboxRestoreRequest -SourceDatabase “<Database Name>” -SourceStoreMailbox “<MailboxGUID>” -TargetMailbox “<Target Mailbox Alias>” -AllowLegacyDNMismatch

 

 NOTE: If you need to restore a mailbox and also want to restore the “deleted items” (deletions+purges+versions) you need to use the –AllowLegacyDNMismatch  switch

 

To view the globally unique identifier (GUID) of each mailbox, run the following command:

  • Get-MailboxStatistics -Database “<Database Name>” -Recovery | Format-List DisplayName, MailboxGUID

More information:

https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/Restore-Mailbox?view=exchange-ps