Share via


Using the Move Mailbox (ADSI/CDOEXM) Sample Application

Using the Move Mailbox (ADSI/CDOEXM) Sample Application

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The Move Mailbox (ADSI/CDOEXM) sample application consists of a Microsoft® Visual Basic® Scripting Edition (VBScript) file and may be run from the command line. The following table contains the command-line arguments that must be used, and their descriptions.

Argument Description
Server The Exchange server where the mailbox to be moved is located.
RecipName The display name of the user whose mailbox is being moved.
Moveto_MailboxStore The mailbox store to which the mailbox is being moved.
Moveto_StorageGroup The storage group to which the mailbox is being moved.
Moveto_Server The Exchange server to which the mailbox is being moved.

To move a user's mailbox

  1. Open a command window and navigate to the directory where the MoveMailboxADSI_CDOEXM.vbs file is located.
  2. Type cscript MoveMailboxADSI_CDOEXM.vbs followed by the Server, RecipName, Moveto_MailboxStore, Moveto_StorageGroup, and Moveto_Server arguments, and then press ENTER.

The Move Mailbox (ADSI/CDOEXM) sample application must be used on either a computer running Microsoft Exchange Server 2003 or a computer that has the Exchange Management components installed. The user or process running this sample application must be a member of the Enterprise Admins security group or have the necessary rights to move mailboxes.

The following command moves the mailbox of Jeff Smith on server1 to the Mailbox Store (server2) mailbox store in First Storage Group on server2:

C:\>cscript MoveMailboxADSI_CDOEXM.vbs "server1" "Jeff Smith" "Mailbox Store (server2)" "First Storage Group" "server2"

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.