Here are some things you’ll need, for sure, before you get started:

  1. Access to the Exchange Server
  2. A backup of the exchange database (.edb) file and its logs
  3. The name of the mailbox you wish to recover and a second mailbox in case you’d like to copy data from the recovered mailbox to a random mailbox so you don’t overwrite anything

Here are the steps to the recovery:

  1. Add the Exchange Database to the Exchange Server as a “Recovery Database”
  2. Correct an issues with the database, possibly repair the database if it was in a dirty shutdown state
  3. Mount the database
  4. Recover the mailbox items from the Recovery Database in a number of different ways
  5. Dismount the database
  6. Remove the Recovery Database

Add the Exchange Database to the Exchange Server as a “Recovery Database”

Note: You need the .edb file and the logs. There’s no sense in going forward with this tutorial unless you have both.

We use Barracuda Backup appliances for all of our backup needs. I found the files I needed and restored them to a directory. For this tutorial it will be called E:\Recovery on my Exchange Server. Both of the logs and the .edb file reside in E:\Recovery.

Use the following command to add the database to the Exchange Server as a Recovery Database. In this command, my .edb file is called db1.edb, my server is called exchange01, and the name of my Recovery Database will be called db1:

New-MailboxDatabase -Recovery -Name db1 -Server exchange01 -EdbFilePath "E:\Recovery\db1.edb" -LogFolderPath "E:\Recovery"

Once added, you’ll be able to see the database in the EMC located under Microsoft Exchange > Organization Configuration > Mailbox > Database Management Tab. It will be unmounted. Before we can mount the database, we need to check to see if its status is a clean or dirty shutdown.

Check the shutdown status and correct, if necessary

In Exchange Management Shell, type the following command to check on the status of the database:

ESEUTIL /mh E:\Recovery\db1.edb

This will give you a long readout of the stats regarding the database. The state of the database will say either clean or dirty shutdown. If it’s clean, you can mount the database. If the state is dirty, you’ll need to repair the database by running the following command:

ESEUTIL /p E:\Recovery\db1.edb

Note: Keep in mind that some items may be lost during this repair. For large databases, this process can take a few hours.

Once repaired, run the /mh script again to make sure the database is in a clean shutdown state. I’ve never had a database fail to change the state to clean after running the /p command.

Mount the database

This can be done by refreshing the view of the database in the EMC, right clicking, and choosing to mount. If the state of the database is clean, it should mount without an issue. Keep in mind that this task may take up to minute after you click “Mount Database”. Be patient.

Recover the mailbox items from the Recovery Database

This can be acommplished in a number of different ways. For these scripts, the mailbox we will be recovering will be called “Dan Lee”.

To recover a mailbox, overwriting the old one (not recommended as it will overwrite everything), run the following:

Restore-Mailbox -ID 'Dan Lee' -RecoveryDatabase db1

To recover the contents of the mailbox to a subfolder of a different mailbox, have a mailbox already created and think of a folder name that you can remember. For this example, the Recovery Mailbox is called Admin Mailbox and the target folder of the Recovery Mailbox will be ‘dlee’:

Restore-Mailbox -ID 'Dan Lee' -RecoveryDatabase db1 -RecoveryMailbox 'Admin Mailbox' -TargetFolder 'dlee'

If you have a big mailbox or just want a certain folder recovered, you can use the ‘-IncludeFolders’ switch. Using it will only recovery the contents of the folders listed, nothing else. Separate the list of folders using a comma and space. In this example, the restore will only recovery the items of Inbox, Sent, and 2010 Budget folders to a sub folder called dlee underneath the mailbox Admin Mailbox:

Restore-Mailbox -ID 'Dan Lee' -RecoveryDatabase db1 -RecoveryMailbox 'Admin Mailbox' -TargetFolder 'dlee' -IncludeFolders \Inbox, \Sent, \2010 Budget

Last, you can do a recovery based on keywords by using -SubjectKeywords and -ContentKeywords switches, both able to take more than one word, again separated with a comma and space. To restore items that only have the word ‘budget’ and ‘marketing’ in both the subject or the body of the email:

Restore-Mailbox -ID 'Dan Lee' -RecoveryDatabase db1 -RecoveryMailbox 'Admin Mailbox' -TargetFolder 'dlee' -SubjectKeywords budget, marketing -ContentKeywords budget, marketing

I hope the examples help. There are tons of other methods to doing the restore, plenty of switches with lots of options. Get as specific as you want or just restore the whole mailbox and move what you need.

Dismount the Database

This can be done as quickly as mounting the database. Find it in the EMC, right click, and dismount. It will ask you if you are sure. When you are sure, click yes.

Remove the Database

Once dismounted, right click and choose to remove. The task will run and the Recovery Database will disappear from the list. Keep in mind, no files have actually been deleted. You’ll have to head into the file structure of the Exchange Server and delete the .ebd file and log files manually.

Links and Documentation:

I hope this helps everyone! Cheers!

, , , , , ,

No red underline while typing words incorrectly?

If you upgraded Outlook to version 2010 but left the rest of your Office products at 2007, you may not be getting red underlines when you type words incorrectly in Outlook. Here’s the easy, easy fix for this:

Find the winword.exe file for Office 2007, located by default in C:\Program Files\Microsoft Office\Office12 (C:\Program Files (x86)\Microsoft Office\Office12 if you’re using 64bit).

Copy and Paste winword.exe into Office 2010′s location in C:\Program Files\Microsoft Office\Office14.

Close Outlook and open it back up. Give it a test and see if you get those red lines that keeping your emails looking professional!

Other potential issues with Spell Checker not working in general

Sometimes there are issues with spell checker in general. The biggest issue is that Spell Checker was disabled as in add-on. If it’s disabled in word then you won’t be able to use it in Outlook. Here’s how to enable it:

  1. Open MS Word
  2. Click on the Microsoft Office Button (MOB) at the top left of MS Word
  3. Go to Word Options
  4. Click on Add-Ons
  5. At the bottom of the window there is a drop down box labeled “Manage:”. Choose the drop down called “Disabled Items” and click GO:
  6. If spell checker is listed there, remove it from this list
  7. Close Outlook and Word and reopen word to test

Let me know your thoughts and successes or failures with this tutorial. Cheers!

, ,