Microsoft Exchange Mailbox Merge (exmerge.exe) Exmerge enables an admin to extract data from mailboxes on an Exchange Server and then merge this data into the same mailboxes on another computer that is running Exchange Server. The Exchange 4.0,5.0,5.5 version of this program is included in the BackOffice Resource Kit, Second Edition. The Exchange 2000 Sever version of exmerge is included on the cd in the support\utils\i386\exmerge\ folder. Exmerge must be run from the Exchange bin directory, copy the files exmerge.exe and exmerge.ini files to the \exchsrvr\bin folder and run from that location. Exmerge copies data from the source server into personal folder files (PST) and then merges the data in the personal folder into the mailboxes on the destination server. There are two modes of operation in exmerge: one step mode and two step mode. In One Step mode, the program copies data from the source mailbox to a PST file and then merge the data in the PST file into the same mailbox on the destination server. In this case, the mailbox on the destination server must have the same mailbox name and the same container path. The Distinguished Name (DN) of the mailbox on the destination server is obtained by replacing the Organization and Site names in the DN of the mailbox on the source server with the Organization and Sites names of the destination server. In Two Step mode, the user has the option of only copying data to PST files or merging data from PST files into a server. For this program to successfully work, the user must be logged on to Microsoft Windows NT with the Exchange Service account. If this is not possible, then the current Windows NT account must have permissions on all mailboxes selected to be merged. The program creates a log file called c:\exmerge.log, which contains any errors encountered during operation. The Exchange Server 4.0, 5.0, and 5.5 version of this program only runs on Windows NT Server 4.0 or later. The Exchange 2000 Server version of this program only runs on Microsoft Windows 2000 Server or later. Before you run this program, make sure that the Microsoft Exchange Client and the Microsoft Exchange Administrator program are installed on the computer that Exmerge.exe is being run on. To start the program, double-click on the Exmerge.exe program from the Windows NT Explorer. This version of Exmerge.exe only merges user folders and messages. It does not support Inbox Rules, forms, and Schedule+ data. Exmerge.exe merges Outlook Calendars and Contacts. Messages copied lose their single instance storage and this may result in the size of the Exchange private information store increasing significantly. If you are having problems getting mailboxes on a server, do the following: 1. Check server name. 2. Check Organization and Site names. 3. Verify that the directory and information store are running on the server. The Exmerge program gets the list of mailboxes from the information store, because it also gets the mailbox size. 4. This step applies to Exchange 4.0, 5.0, 5.5, not to Exchange 2000 Sometimes the list displayed may not contain all the mailboxes on the Exchange Server computer. Mailboxes that have never been logged on to have no Information Store object. Therefore, these mailboxes are not detected. This behavior is also noticed in the Exchange Server Administrator program when you view the mailbox resources of the private information store. The workaround to this problem is to log on to the Exchange client and send an e-mail message to all mailboxes on that server. This creates mailbox objects in the information store for all mailboxes. ------------------------------------------------------------------------ What Are the Conditions I Need to Meet to Run Exmerge Successfully? You can run the Exmerge utility against a remote Exchange Server computer. However, you must have Exchange Server or at least the Exchange Server Administrator program installed on the computer that you run Exmerge on. The account that you use to log on must have Service Account Administrator permissions at the organization, site, and configuration levels of the Administrator program. You need enough disk space on the drive that contains the Priv.edb database for the Priv.edb database to possibly double in size. This growth occurs because you lose single-instance storage, which is the ability to store a mail item that is addressed to several recipients as one mail item with pointers to each recipient instead of as a mail item for each recipient. You also need enough disk space for the personal folders (.pst) files that Exmerge creates. By default, the .pst files are created on the drive that you run Exmerge from, but you can specify that the .pst files be created on another drive if necessary. You must have the correct version of Exmerge. With Exchange Server 4.0 and 5.0, use Exmerge version 2.0. With Exchange Server 5.5, as of June 2000, use Exmerge 3.71. Allot enough time for Exmerge to run. Depending on hardware and other considerations, the average time for Exmerge step 1 is from 45 minutes to 1 hour for each gigabyte (GB). For Exmerge step 2, the average time is from 1 to 2 hours for each GB. What Are the Possible Uses of Exmerge? You can use Exmerge to extract mail from a damaged private information store. Exmerge puts this mail into .pst files that you can import back into an undamaged private information store. You can use Exmerge to locate and remove a specific e-mail message from the private information store (for example, virus mail). You can use Exmerge to migrate users between different organizations and sites by copying the users' mail to .pst files that you can then import into the new organization or site. You can use Exmerge to extract folder rules. In some situations, you can even use Exmerge as a brick-level backup agent, although Exmerge does not have the ability to write the data to a backup tape. What Is Exmerge Able to Do and What Is Exmerge Unable to Do? Exmerge merges server-based rules on Exchange Server 5.0 or later, but clients must re-enable the rules after the merge. To re-enable the rules after the merge, click to select the check box for each rule in the Rules Wizard (on the Tools menu). Exmerge 3.71 does support the Microsoft Outlook Calendar, Contacts, Journal, Notes, and Tasks. Exmerge 3.71 also supports folder rules and views in Exchange Server 5.0 and later. (Earlier versions of Exmerge may not support all these items.) Exmerge 3.71 does not support Microsoft Schedule+ data. How Do I Extract All the Mail From a Damaged Private Information Store and Create a New Private Information Store with the Extracted Mail? Create a folder called Exmerge on your Exchange Server computer desktop. Copy or unzip the following files into the Exmerge folder: Exmerge.exe, Exmerge.ini, and Mfc42.dll. Double-click Exmerge.exe. Click Two step merge. Click Step 1: Copy Data to Personal Folders. Type the name of the Exchange Server computer. Click Options. Click the Data tab, and then click to select the User Messages and Folders, Associated Folder Messages, and Folder Permissions check boxes. (Clicking to select the Dumpster Items check box is optional.) On the rest of the tabs, leave the default settings. Click Apply, and then click OK. Click All Mailboxes, and then click Next. Note the number of mailboxes that are selected, the free disk space available, and the disk space required, and then click Next. It is recommended that you leave the default folder as C:\Exmergedata; however, you can change the location if necessary. Click Next. Exmerge merges mailboxes to .pst files. NOTE: If Exmerge stops responding (hangs) on a mailbox, the mailbox is too corrupted to merge to a .pst file. Click the next mailbox and continue the process. Stop the information store. Remove the Priv.edb database from the X:\Exchsrvr\Mdbdata folder, and then place the Priv.edb database in a backup folder. Also remove all .log and .chk files from the Mdbdata folders on all drives, and then move those .log and .chk files to a backup folder. IMPORTANT: Do not remove the Pub.edb database. Start the information store to create a new Priv.edb database. Send a test message to all server recipients or to the global address list. Double-click Exmerge.exe. Click Two step merge. Click Step 2: Merge Data from Personal Folders. Type your Exchange Server computer name, and then click Options. Click the Data tab, and then click to select the User messages and Folders, Associated Folder Messages, and Folder Permissions check boxes. (Clicking to select the Dumpster Items check box is optional.) On the rest of the tabs, leave the default settings. Click Apply, and then click OK. Click All Mailboxes, and then click Next. Leave the default folder as C:\Exmergedata, and then click Next. Proceed with the merge. NOTE: Offline folder (.ost) file users must convert their .ost file to a .pst file before those users can connect to the new private information store. The .ost files are profile-specific and can only be used with a single profile. When the location of the mailbox that the profile points to changes as a result of creating a new Priv.edb, the user can never gain access to that mail again. What Is the Advantage of Being Able to Extract Only Specific Mail From a Private Information Store, Either by Date, Subject, or Attachment Name? You can use this process to remove sensitive data from the private information store that was accidentally distributed by an Exchange Server user. You can use this process to remove e-mail messages or file attachments that are infected with a virus from the private information store. How Do I Extract Only Specific Mail From a Private Information Store? Log on by using the Exchange Server service account. Create a folder called Exmerge on your Exchange Server computer desktop. Copy or unzip the following files into the Exmerge folder: Exmerge.exe, Exmerge.ini, and Mfc42.dll. Double-click Exmerge.exe. Click Two step merge. Click Step 1: Copy Data to Personal Folders. Type your Exchange Server computer name, and then click Options. Click the Data tab, and then click User messages. Click the Import Procedure tab, and then click Archive data to target store (this copies the selected data to .pst files and then deletes the data from the Exchange Server mailbox). Click the Message Details tab, enter the subject of the message or the name of the attachment that you want to remove, and then click Add. Click Apply, and then click OK. On the Dates tab, you can also select a specific date or range of dates or times to narrow your search. NOTE: All dates and times are selected by default. Click All Mailboxes or select the affected mailboxes if you can identify them, and click Next. If possible, leave the default folder as C:\Exmergedata, and then click Next. NOTE: It is not recommended that you change the default folder, but you may need to change the default folder because of free disk space limitations. Exmerge moves the specified messages to a .pst file. When the merge is finished, open a few mailboxes to make sure that the messages have been removed. NOTE: The selected messages are not removed from the system attendant mailbox as a safety measure. You must manually delete these messages. Where Can I Obtain Additional Information About Running Exmerge? For additional information about running Exmerge, click the article numbers below to view the articles in the Microsoft Knowledge Base: ------------------------------------------------------------------------ http://support.microsoft.com/default.aspx?scid=kb;EN-US;174197 http://support.microsoft.com/default.aspx?scid=kb;EN-US;265441