Introduction

Exchange 2010 has a built in search feature which allows you to quickly search for emails in your mailbox using OWA, Exchange ActiveSync, Outlook (in the Online mode) etc. Exchange 2010 search indexes items as soon as they are received by the Mailbox Database. While this feature works well, if you just transitioned / migrated from Exchange 2003 or 2007 to 2010, Exchange may not index items brought over from the Exchange 2003/2007 server to the Exchange 2010 server. You may find that users using Exchange search may have issues searching for items that were in their mailbox before the transition.

For example, you will not be able to find a pre-transition item using instant search but will be able to find them using Advanced Find in Outlook.

To fix this issue, you will have to reset the search index to force the Exchange Search service to index all items in the Mailbox Database including items that were moved to the database from Exchange 2003.

  • To reset the search index, open up the Exchange Management Shell navigate to %PROGRAMFILES%\Microsoft\Exchange Server\V14\Scripts

and then run the following command:

.\ResetSearchIndex.ps1 -force -all

You should see output that resembles the following:

WARNING: Waiting for service 'Microsoft Exchange Search Indexer (MSExchangeSearch)' to finish stopping..
MSExchangeSearch service stopped
Deleting catalog for Mailbox Database
removing: D:\Exchange Server\Maillbox\catalogdata-aeedd3ff-5317-4a9f-a37a-cb6eb8bbd2d5-8c570432-03e7-4fc0-8019-f90cd327c953
MSExchangeSearch service Started

To verify that the rebuilding of the index has completed do the following:

  1. Add this counter to Perfmon: MSExchange Search Indices\Full Crawl Mode Status. This counter will be 0 before running ResetSearchIndex, go to 1 during the full crawl and then back to 0 after ResetSearchIndex completes.
  2. You will receive MSExchange Search Indexer Event ID 109 when the full crawl begins.
  3. You will receive MSExchange Search Indexer Event ID 110 when the full crawl ends.
  4. You should now be able to search for pre-transition items using Exchange search.