Managing Exchange Search
Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.
Applies to: Exchange Server 2007, Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3
Topic Last Modified: 2016-11-10
Microsoft Exchange Server 2007 Search is a feature that allows you to quickly search text in messages through the use of pre-built indexes. By using the Microsoft Search indexing engine (MSSearch), Exchange Search creates the initial index by crawling all messages in mailboxes within an Exchange 2007 database. As new messages arrive, Exchange Search updates the index based on notifications from the Microsoft Exchange Information Store service.
There are scripts located in the \Exchange Server\Scripts directory that can help you to administer and manage Exchange Search. Using the Exchange Management Shell, you can run the following scripts:
GetDatabaseForSearchIndex.ps1 When the index directory files are provided, this script returns the associated mailbox database names. Example script:
GetDatabaseForSearchIndex IndexDirectoryName1 IndexDirectoryName2
GetSearchIndexForDatabase.ps1 This script returns index directories for the specified mailbox database names. Example script:
GetSearchIndexForDatabase MailboxdatabaseName1 MailboxdatabaseName2 -All
ResetSearchIndex.ps1 This script removes the index directories that are associated with specified mailbox databases. Example script:
ResetSearchIndex [-Force] [-All] MailboxdatabaseName1 MailboxdatabaseName2
This following list contains the management tasks that you can perform for Exchange Search and includes links to topics that will help you complete each task.
This procedure shows you how to use the Exchange Management Shell to enable or disable Exchange Search for a mailbox database. This procedure also shows you how to use the Services Microsoft Management Console (MMC) snap-in to disable Exchange Search for a Mailbox server.
This procedure shows you how to use the Exchange Management Shell, Services MMC snap-in, Event Viewer, and Performance Monitor to diagnose and resolve Exchange Search issues.
This procedure shows you how to use Exchange Search in conjunction with the Export-Mailbox cmdlet to search for specific message content, and then either review or delete the messages that contain the content.
To learn more about Exchange Search, see the following: