How to Recover Exchange 2013 Database

By RajiSubramanian

The article explains the step by step on how restore the mailbox from the database that is restored from the backup.
Step 1: Provide the folder path location to the backup team where the database and log file needs to restore.

Note: Make sure you have enough free disk space on the restored location

Step 2: Verify the database health status after the restoration of database file. Run the following command to verify the status

eseutil.exe /mh E:\Recovery\RDB.edb | select-string “State:”, “Log Required”

Step 3: If the database is Clean Shutdown move to next step. In case if it is dirty shutdown perform the soft recovery and if it fails move to hard recovery

Step 4: Create Recovery database using the following commands

New-MailboxDatabase -Recovery RDB01 -Server MBX01 -EdbFilePath E:\Recovery\RDB.edb

Step 5: Verify the database is in mounted state

Get-MailboxDatabase RDB01 -status | fl Name, Mounted

Step 6 : Mount the database

Mount-Database RDB01 –Verbose

Step 7 : Verify the database mounted status

Get-MailboxDatabase RDB01 -status | fl Name, Mounted

Step 8: Verify the mailbox statistics of the restored database

To find all mailbox in the recovery database – Get-mailboxstatistics -database RDB01
To find specific mailbox w.r.t to user account or GUID – Get-MailboxStatistics -Database RecoveryDB | ?{$_.DisplayName -like ‘Raji*’} | fl DisplayName,MailboxGuid,DisconnectDate

Step 9: Restoring them using the following Exchange PowerShell command based upon your requirement

Restoring the complete user mailbox

New-mailboxrestorerequest –sourcedatabase “RDB01” –sourcestoremailbox “Raji” –targetmailbox “Raji@mail.com“

Restoring the mailbox using guid

New-MailboxRestoreRequest -SourceDatabase “RDB01” -SourceStoreMailbox 4a1d2118-b8cc-456c-9fd9-cd9af1f549d0 -TargetMailbox Raji

Restoring the source mailbox to different user mailbox

New-MailboxRestoreRequest -SourceDatabase “RDB01” -SourceStoreMailbox ‘Raji’ -TargetMailbox Subramanian -TargetRootFolder Restore -AllowLegacyDNMismatch

Restoring the mailbox email in a seperate folder (Restore) on the user mailbox

New-MailboxRestoreRequest -SourceDatabase “RDB01” -SourceStoreMailbox ‘Raji’ -TargetMailbox ‘Raji’ -TargetRootFolder Restore -IncludeFolders ‘#Inbox#/#Test#/*’ -AllowLegacyDNMismatch

Step 10: Check the status of mailbox restoration when completed check in the user mailbox on all restored emails.

Get-MailboxRestoreRequest

Step 11: Remove the completed mailbox restore using the following PowerShell command

Get-MailboxRestoreRequest -status Completed | Remove-MailboxRestoreRequest