Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 925389 - Last Review: May 6, 2008 - Revision: 1.0
Description of the updated IMailBoxStore::MoveMailbox method in Exchange 2000 Service Pack 3 or in Exchange 2003 Service Pack 2
After you install Microsoft Exchange 2000 Server Service Pack 3 (SP3) or Microsoft Exchange Server 2003 Service Pack 2 (SP2), the IMailBoxStore::MoveMailbox method is changed. The IMailBoxStore::MoveMailbox method had one parameter in versions of Exchange before these service packs. After you install these service packs, the IMailBoxStore::MoveMailbox method has three parameters. This article describes the three parameters that are required to make this method work successfully.
Note You must remove the current reference to the Cdoexm.dll file in the development project. Then, re-add the newer version of the Cdoexm.dll file for the new parameters.
The
MoveMailbox
method for the
IMailboxStore interface has the parameters that are listed in the following table.
Collapse this tableExpand this table
| Parameter name | Parameter type | Parameter value |
|---|
| HomeMDBURL | String | The URL to the new mailbox location. |
| FCrossAG | VARIANT_BOOL | default value FALSE |
| IMaxBadItemsToSkip | Long | default value 0 (0-100) |
By default, the
FCrossAG
parameter has a value of FALSE. Therefore, you must set the
FCrossAG
parameter to TRUE when you use it.
The
MoveMailbox
method has been updated to include two new optional parameters as shown in the following code example.
MoveMailbox(HomeMDBURL As String, [FCrossAG As Boolean = False], [lMaxBadItemsToSkip As Long])
The following code example illustrates how to specify these parameters in a Microsoft Visual Basic Scripting Edition (VBScript) file to move a mailbox across administrative groups.
objMailbox.MoveMailbox "LDAP:/" & strMailStorePath, TRUE, 0
APPLIES TO
- Microsoft Exchange Server 2000 Service Pack 3
- Microsoft Exchange Server 2003 Service Pack 2
| kbexpertiseadvanced kbhowto KB925389 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please