IAdmMoveExchangeMailboxOps

The IAdmMoveExchangeMailboxOps interface provides methods to perform mailbox moves.

Inheritance: IUnknown

To move mailboxes to and from Microsoft 365, use the IAdmMoveExchangeMailboxOps2 interface.

Methods

Details

CreateMoveMailboxRequest()

Starts the process of an asynchronous move of the user's mailbox and/or personal archive.

void CreateMoveMailboxRequest(string primaryMailboxTargetDatabase,
                              string archiveMailboxTargetDatabase,
                              int badItemLimit,
                              int largeItemLimit)

Parameters

  • primaryMailboxTargetDatabase – the ADS path of the mailbox database for the primary mailbox. If the parameter is null, the primary mailbox will not be moved.
  • archiveMailboxTargetDatabase – the ADS path of the mailbox database for the archive mailbox. If the parameter is null, the archive mailbox will not be moved.
  • badItemLimit – the number of bad items to skip if the request encounters corruption in the mailbox. Use 0 to not skip bad items. The valid input range for this parameter is from 0 through 2147483647.
  • largeItemLimit – the number of large items to skip if the request encounters such items in the mailbox. Use 0 to not skip any large items.

Examples

Moving mailboxes


GetMoveMailboxRequestInfo()

Gets the detailed status of an ongoing asynchronous mailbox move.

IAdmMoveExchangeMailboxRequestInfo GetMoveMailboxRequestInfo(bool includeReport)

Parameters

Remarks

If there are no move requests associated with the mailbox, the method returns an empty instance of the IAdmMoveExchangeMailboxRequestInfo interface.


CancelMoveMailboxRequest()

Cancels an ongoing mailbox move.

void CancelMoveMailboxRequest()

DeleteMoveMailboxRequest()

Deletes the current mailbox move request.

void DeleteMoveMailboxRequest()

Requirements

Minimum required version: 2013.1

See also