To use Mdbvu32.exe successfully, create a profile for the directory service mailbox, and then run Mdbvu32.exe.
IMPORTANT: Before you begin, back up the directory service mailbox and private information store.
WARNING: If you use the raw mode of the Exchange Server Administrator program (
admin /r) incorrectly, serious problems may occur that may require you to reinstall Microsoft Windows NT Server, Microsoft Exchange Server, or both. Microsoft cannot guarantee that problems that result from using raw mode incorrectly can be solved. Use raw mode at your own risk.
First, create a profile for the service mailbox folder:
- Log on to the computer that runs Windows NT Server as the Exchange service account.
- Start the Microsoft Exchange Server Administrator program in Raw mode. To do so, type admin /r at the command prompt, and then press ENTER.
- In the left pane, under the appropriate site, click to expand the
Configuration object, click to expand the Servers object, and then click the appropriate server.
- In the right pane, click the Directory Service object.
- On the File menu, click Raw Properties.
- In the raw properties for the Directory Service object, in the List Attributes Of Type box, click Optional.
- In the Object Attributes list, click Display Name.
- In the Edit Value box, type servernameDS, where servername is the name of your server.
- Click Set, and then click Apply.
- In the Object Attributes list, click Obj-Dist-Name.
- Click all of the text in the Edit Value box, and then press CTRL+C to copy the text to the clipboard.
- Click OK to close the raw properties for the Directory Service object.
- Click Start, point to Settings, click Control Panel, and then double-click Mail.
NOTE: If the Mail icon is not displayed in Control Panel, install the Exchange Server client. Click the Show Profiles button in the dialog box that is displayed. If a Show Profiles button is not displayed, proceed to the next step. - Click Add, click to select the Microsoft Exchange Server check box, and then click Next.
- If you are prompted to specify a profile name, type servernameDS, where servername is the name of your server, and then click Next.
- In the Microsoft Exchange Server dialog box, type the name of the server.
- In the Mailbox box, press CTRL+V to paste the text that you copied in step 11, and then click Next.
- Proceed through the remainder of the wizard. When you finish the wizard, you automatically return to the General tab for profiles.
- Click the new profile, and then click Properties.
- In the list of information services, click Microsoft Exchange Server, and then click Properties.
- On the General tab, click Check Name. The server and mailbox resolve.
NOTE:The display name that you specified in step 8 is displayed in the Mailbox box, and both the server and mailbox are underlined. - Click OK, click OK again, and then click Close.
Next, remove messages from the directory service mailbox.
To use Mdbvu32.exe to remove messages from the directory service mailbox, follow these steps:
- Run Mdbvu32.exe. The file is located in the Server\Support\Utils folder on the Exchange Server 5.5 CD-ROM.
- In the MAPILogonEx(MAPI_LOGON_UI) dialog box, click to select the following check boxes, and then click OK:
- MAPI_NEW_SESSION
- MAPI_EXPLICIT_PROFILE
- MAPI_NO_MAIL
- After you receive a prompt to select a profile, click the profile that you created for the directory service mailbox. If you were prompted to specify a profile name when you created the profile, the profile name is servernameDS, where servername is the name of your server.
- In the MDB Viewer Test Application window, click OpenMessageStore on the MDB menu.
- In the Select Message Store to Open dialog box, click the entry for the directory service mailbox, and then click Open.
- In the MDB Viewer Test Application window, click Open Root Folder on the MDB menu.
- In the MAPI_FOLDER - Root dialog box, double-click Top of Information Store in the Child Folders box.
- In the MAPI_FOLDER - Top of Information Store dialog box, double-click Inbox in the Child Folders box.
In the MAPI_FOLDER - Inbox dialog box that is displayed, the messages that are waiting for a response in the directory service mailbox are displayed in the Messages In Folder box. This box may take some time to populate. Each message is displayed in the following format:
Replication Message version number
NOTE: The time it takes for the box to populate depends on the number of messages that are backed up in the mailbox.
- Click the message that you want to delete.
- In the Operations available box, click IpFld -> DeleteMessages().
- Click Call Function to delete the selected message.
- Repeat steps 9 through 11 for any additional messages that you want to delete.
NOTE: You can delete multiple messages at the same time by using either the CTRL or SHIFT key to select multiple messages in step 9. - After you delete all the messages that you want to delete and there are no replication messages in the Inbox, click Close three times to return to the MDB Viewer Test Application window.
- Click Session Logoff on the Session menu, and then click OK in the IpMDB->StoreLogoff() dialog box.
Finally, open Control Panel, double-click
Mail, and then delete the profile that you created for the directory service mailbox.
Alternatively, you can use MFCMapi.exe to remove messages from the directory service mailbox.
The following file is available for download from the Microsoft Download Center:
Download the MFCMapi.exe package now.To use MFCMapi.exe to remove messages from the directory service mailbox, follow these steps:
- Run MFCMapi.exe.
- On the Session menu, click Logon and Display Store Table.
- Select the profile that you created for the directory service mailbox, and then click OK.
- Double-click the directory service mailbox.
- Expand the Root Container, and then expand Top of Information Store.
- To delete all the messages in the directory service mailbox, right-click the Inbox, and then click Empty Items and Subfolders from Folder. To delete individual messages in the directory service mailbox, click to select the message that you want to delete, right-click the message, and then click Delete Message.
For more information about MFCMapi.exe, click the following article number to view the article in the Microsoft Knowledge Base:
291794�
MFCMAPI demonstrates MAPI client code