New-MoveRequest
Applies to: Exchange Server 2010
Topic Last Modified: 2011-03-19
Use the New-MoveRequest cmdlet to begin the process of an asynchronous mailbox move. You can also check mailbox readiness to be moved by using the WhatIf parameter.
New-MoveRequest -Identity <MailboxOrMailUserIdParameter> [-BadItemLimit <Int32>] [-BatchName <String>] [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-IgnoreRuleLimitErrors <SwitchParameter>] [-MRSServer <Fqdn>] [-Protect <SwitchParameter>] [-Suspend <SwitchParameter>] [-SuspendComment <String>] [-SuspendWhenReadyToComplete <SwitchParameter>] [-TargetDatabase <DatabaseIdParameter>] [-WhatIf [<SwitchParameter>]]
New-MoveRequest -Identity <MailboxOrMailUserIdParameter> -Remote <SwitchParameter> -RemoteHostName <Fqdn> -TargetDeliveryDomain <Fqdn> [-BadItemLimit <Int32>] [-BatchName <String>] [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-IgnoreRuleLimitErrors <SwitchParameter>] [-MRSServer <Fqdn>] [-Protect <SwitchParameter>] [-RemoteCredential <PSCredential>] [-RemoteGlobalCatalog <Fqdn>] [-RemoteOrganizationName <String>] [-RemoteTargetDatabase <String>] [-Suspend <SwitchParameter>] [-SuspendComment <String>] [-SuspendWhenReadyToComplete <SwitchParameter>] [-TargetDatabase <DatabaseIdParameter>] [-WhatIf [<SwitchParameter>]]
New-MoveRequest -Identity <MailboxOrMailUserIdParameter> -RemoteGlobalCatalog <Fqdn> -RemoteLegacy <SwitchParameter> -TargetDeliveryDomain <Fqdn> [-BadItemLimit <Int32>] [-BatchName <String>] [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-IgnoreRuleLimitErrors <SwitchParameter>] [-MRSServer <Fqdn>] [-Protect <SwitchParameter>] [-RemoteCredential <PSCredential>] [-RemoteTargetDatabase <String>] [-Suspend <SwitchParameter>] [-SuspendComment <String>] [-SuspendWhenReadyToComplete <SwitchParameter>] [-TargetDatabase <DatabaseIdParameter>] [-WhatIf [<SwitchParameter>]]
| Parameter | Required | Type | Description |
|---|---|---|---|
|
Identity |
Required |
Microsoft.Exchange.Configuration.Tasks.MailboxOrMailUserIdParameter |
The Identity parameter specifies the identity of the mailbox or mail user. You can use the following values:
|
|
Remote |
Required |
System.Management.Automation.SwitchParameter |
The Remote switch specifies that the move you're initiating is outside of your organization. For example, if you're trying to perform a cross-forest move or if you're trying to move the mailbox to Microsoft Office Outlook Web App, you would use this parameter. You don't have to specify a value with this parameter. |
|
RemoteGlobalCatalog |
Required |
Microsoft.Exchange.Data.Fqdn |
The RemoteGlobalCatalog parameter specifies the fully qualified domain name (FQDN) of the global catalog server for the remote forest. |
|
RemoteHostName |
Required |
Microsoft.Exchange.Data.Fqdn |
The RemoteHostName parameter specifies the FQDN of the cross-forest organization from which you're moving the mailbox. |
|
RemoteLegacy |
Required |
System.Management.Automation.SwitchParameter |
The RemoteLegacy switch specifies that this mailbox move is from a remote forest that doesn't have Microsoft Exchange Server 2010 installed. You don't have to specify a value with this parameter. |
|
TargetDeliveryDomain |
Required |
Microsoft.Exchange.Data.Fqdn |
The TargetDeliveryDomain parameter specifies the FQDN of the external e-mail address that's created in the source forest for the mail-enabled user when the move request is complete. This parameter is allowed only when doing remote moves with Remote or RemoteLegacy parameters. |
|
BadItemLimit |
Optional |
System.Int32 |
The BadItemLimit parameter specifies the number of bad items to skip if the move request encounters corruption in the mailbox. Use |
|
BatchName |
Optional |
System.String |
The BatchName parameter specifies a descriptive name for moving a batch of mailboxes. You can then use the name in the BatchName parameter as a search string when you use the Get-MoveRequest cmdlet. |
|
Confirm |
Optional |
System.Management.Automation.SwitchParameter |
The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch. |
|
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory. |
|
IgnoreRuleLimitErrors |
Optional |
System.Management.Automation.SwitchParameter |
The IgnoreRuleLimitErrors parameter specifies that the command doesn't move the user's rules to the target server running Exchange. |
|
MRSServer |
Optional |
Microsoft.Exchange.Data.Fqdn |
The MRSServer parameter specifies the FQDN of the Client Access server on which the instance of the Mailbox Replication Service is running. |
|
Protect |
Optional |
System.Management.Automation.SwitchParameter |
This parameter is reserved for internal Microsoft use. |
|
RemoteCredential |
Optional |
System.Management.Automation.PSCredential |
The RemoteCredential parameter specifies an administrator who has permission to perform the mailbox move, for example, Administrator@humongousinsurance.com. |
|
RemoteOrganizationName |
Optional |
System.String |
This parameter is reserved for internal Microsoft use. |
|
RemoteTargetDatabase |
Optional |
System.String |
The RemoteTargetDatabase parameter specifies the name of the target database in the remote forest. Use this parameter when moving mailboxes from the local forest to a remote forest. For moves from a remote forest to the local forest, use the TargetDatabase parameter. If you use this parameter, you must specify the Remote or RemoteLegacy parameters. |
|
Suspend |
Optional |
System.Management.Automation.SwitchParameter |
The Suspend switch specifies whether to suspend the move request. If you use this parameter, the mailboxes specified in the move request are queued to move, but the move doesn't begin. You don't have to specify a value with this parameter. |
|
SuspendComment |
Optional |
System.String |
The SuspendComment parameter specifies a description as to why the move request was suspended. |
|
SuspendWhenReadyToComplete |
Optional |
System.Management.Automation.SwitchParameter |
The SuspendWhenReadyToComplete switch specifies whether to suspend the move request before it reaches the status of CompletionInProgress. After the move is suspended, it has a status of AutoSuspended. You can then manually complete the move by using the Resume-MoveRequest command. |
|
TargetDatabase |
Optional |
Microsoft.Exchange.Configuration.Tasks.DatabaseIdParameter |
The TargetDatabase parameter specifies the identity of the database that you're moving the mailbox to. |
|
WhatIf |
Optional |
System.Management.Automation.SwitchParameter |
The WhatIf switch instructs the command to simulate the actions that it would take on the object. The WhatIf switch can also be used to test a mailbox's readiness to be moved. By using the WhatIf switch, you can view any errors that will occur without adding the mailbox to the move request queue. You don't have to specify a value with the WhatIf switch. |
You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Mailbox move" entry in the Mailbox Permissions topic.
| Error | Description |
|---|---|
|
|
|
This example tests a mailbox's readiness to move to the new database DB01 within the same forest and for completeness of the command by using the WhatIf switch. When you use the WhatIf switch, the system performs checks on the mailbox, and if the mailbox isn't ready, you receive an error.
New-MoveRequest -Identity 'tony@alpineskihouse.com' -TargetDatabase "DB01" -WhatIf
This example moves Tony Smith's mailbox to the new database DB01.
New-MoveRequest -Identity 'tony@alpineskihouse.com' -TargetDatabase "DB01"
This example creates a batch move request for all mailboxes on the database DB01 and moves them to the database DB02 with the BatchName parameter value DB01toDB02.
Get-Mailbox -Database DB01 | New-MoveRequest -TargetDatabase -BatchName "DB01toDB02"
