You receive an "Error code: -1056749031" error message when you try to move a mailbox to a different administrative group by using a script in Exchange 2003 (883652)



The information in this article applies to:

  • Microsoft Exchange Server 2003 Standard Edition
  • Microsoft Exchange Server 2003 Enterprise Edition

SYMPTOMS

When you run a script that you created to move a mailbox across administrative groups, you receive an error message that is similar to the following:
This mailbox cannot be moved to a different Exchange Server 2003 administrative group while in a mixed Exchange 5.5/Exchange Server 2003 Organization.

Error code: -1056749031

CAUSE

This problem occurs because Microsoft Exchange Server 2003 does not provide an interface that lets scripts be written to move mailboxes across administrative groups.

The FCrossAG cross-administrative group flag is not exposed through the Component Object Model (COM) interface. Therefore, the FCrossAG flag is always set to FALSE. The user interface of the Move Mailbox Wizard resolves this problem by setting the FCrossAG flag by using an internal interface.

RESOLUTION

Update information

The following file is available for download from the Microsoft Download Center:

DownloadDownload the Exchange2003-KB883652-v2-x86.exe package now.

Release Date: February 3, 2005

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to obtain Microsoft support files from online services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

Prerequisites

Because of file dependencies, Microsoft Exchange Server 2003 Service Pack 1 (SP1) must be installed before you apply this update. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

836993 How to obtain the latest service packs for Exchange Server 2003

Restart requirement

You do not have to restart your computer after you apply this update.

Update replacement information

This update does not replace any other updates.

File information

   Date         Time   Version            Size    File name
   --------------------------------------------------------------
   17-Nov-2004  10:05  6.5.7232.53     2,844,160  Cdoexm.dll       
   17-Sep-2004  23:43  6.5.6980.94        20,992  Exhotfix.dll     
   17-Nov-2004  10:04  6.5.7232.53    14,629,376  Maildsmx.dll    

After you install this update, a public interface is available. You can use this interface to perform cross-administrative group moves by using CDO scripts. The following optional parameters are added to the

Update installation information

MoveMailbox
method for the IMailboxStore interface.
Parameter nameParameter typeParameter value
FCrossAGVARIANT_BOOLdefault value FALSE
IMaxBadItemsToSkiplongdefault value 0
The FCrossAG parameter has a default 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 example:
MoveMailbox(HomeMDBURL As String, [FCrossAG As Boolean = False], [lMaxBadItemsToSkip As Long]) 
The following is an example of 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
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. The lMaxBadItemsToSkip parameter has a default value of zero. The valid values for this parameter are in the range between zero and 100. If you set the value of the lMaxBadItemsToSkip parameter to a value that is outside this range, such as -5 or 108, you receive an error message that is similar to the following:
D:\Program Files\Exchsrvr\bin\Cdoexm_MoveMailbox.vbx(21, 2) (null): The value is out of range.

ID no: c1032226

Microsoft CDO for Exchange Management
Additionally, after you install this hotfix, new error messages are available that help you troubleshoot the following situations:
  • For a mixed-mode mailbox-move operation where the source server and the destination server are in different administrative groups, the FCrossAG flag is must be set to TRUE. You receive the following error message if the FCrossAG flag is not set to TRUE:
    The source and destination server are in different administrative groups and you have not selected the option to move mailboxes across administrative groups.
  • For a mixed-mode cross-administrative group mailbox-move operation, the destination server must be running Exchange 2003 Service Pack 1 (SP1) or a later version of Exchange. You receive the following error message if the destination server is not running Exchange 2003 SP1 or a later version of Exchange:
    The source and destination server are in different administrative groups and the destination server is not Exchange 2003 SP1 or later. Cross administrative group moves require destination server to be Exchange 2003 SP1 or later.
  • For a mixed-mode cross-administrative group mailbox-move operation, you must have at least one Microsoft Exchange Server 5.5 server available. You receive the following error message if you do not have at least one Exchange Server 5.5 server available:
    Your organization is in mixed mode and has no Exchange 5.5 servers. Cross administrative groups moves will be blocked until your organization is switched to native mode.
  • For a mixed-mode cross-administrative group mailbox-move operation, all Active Directory Connectors (ADCs) must be Exchange 2003 SP1 ADCs or a later ADC version. You receive the following error message if one or more ADCs are not Exchange 2003 SP1 ADCs or a later ADC version:
    Your organization has at least one Active Directory Connector that is not Exchange 2003 SP1 or later. Cross administrative groups moves will be blocked until all Active Directory Connectors have been upgraded to Exchange 2003 SP1 or later.
  • For a mixed-mode cross-administrative group mailbox-move operation, all Exchange Server 5.5 servers must have the Directory Service/Information Store (DS/IS) update installed. You receive the following error message if one or more Exchange Server 5.5 servers do not have this update installed:
    The source and destination server are in different administrative groups and the 5.5 Directory Service/Information Store (DS/IS) consistency adjuster patch has not been installed.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

The issue that is described in the "Symptoms" section may also occur with Exchange 5.5 server and Exchange server 2003 co-existing in same Exchange organization, but in different administrative groups. In this scenario, if you try to move mailboxes across sites programmatically by using CDOExm.dll code, you receive the following error message:
Unable to move mailbox 'Mailbox1'.
Error: This mailbox cannot be moved to a different Exchange Server 2003 Administrative group while in a mixed Exchange 5.5/Exchange Server 2003 Organization.
Error code: -2147418133 (0x8000FFEB)
ID no: c1034a19 >
This error message is the same as the one that you receive from earlier versions of CDOExm.dll.

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

817903 New naming schema for Exchange Server software update packages


Modification Type:MajorLast Reviewed:4/7/2006
Keywords:kbQFE KBHotfixServer kbExchange2003preSP2fix kbfix kbBug kbExchange2003preSP1fix KB883652 kbAudITPRO