Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2

Topic Last Modified: 2012-12-11

Use the Get-MoveRequest cmdlet to view the detailed status of an ongoing asynchronous mailbox move that was initiated by using the New-MoveRequest cmdlet.

Syntax

Get-MoveRequest [-Identity <MoveRequestIdParameter>] [-Credential <PSCredential>] [-DomainController <Fqdn>] [-MultiTenant <SwitchParameter>] [-Organization <OrganizationIdParameter>] [-OrganizationalUnit <OrganizationalUnitIdParameter>] [-ResultSize <Unlimited>] [-SortBy <String>]
Get-MoveRequest [-BatchName <String>] [-Credential <PSCredential>] [-DomainController <Fqdn>] [-HighPriority <$true | $false>] [-MoveStatus <None | Queued | InProgress | AutoSuspended | CompletionInProgress | Completed | CompletedWithWarning | Suspended | Failed>] [-MultiTenant <SwitchParameter>] [-Offline <$true | $false>] [-Organization <OrganizationIdParameter>] [-OrganizationalUnit <OrganizationalUnitIdParameter>] [-Protect <$true | $false>] [-RemoteHostName <Fqdn>] [-ResultSize <Unlimited>] [-SortBy <String>] [-SourceDatabase <DatabaseIdParameter>] [-Suspend <$true | $false>] [-SuspendWhenReadyToComplete <$true | $false>] [-TargetDatabase <DatabaseIdParameter>]

Detailed Description

The search criteria for the Get-MoveRequests cmdlet is a Boolean And statement. If you use multiple parameters, it narrows your search and reduces your search results.

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 moves" entry in the Mailbox Permissions topic.

Parameters

Parameter Required Type Description

Identity

Optional

Microsoft.Exchange.Management.RecipientTasks.MoveRequestIdParameter

The Identity parameter specifies the identity of the mailbox or mail user. You can use the following values:

  • GUID

  • Distinguished name (DN)

  • Domain\Account

  • User principal name (UPN)

  • Legacy Exchange DN

  • SMTP address

  • Alias

This parameter can't be used in conjunction with the following parameters:

  • BatchName

  • MoveStatus

  • Offline

  • Protect

  • RemoteHostName

  • SourceDatabase

  • Suspend

  • SuspendWhenReadyToComplete

  • TargetDatabase

BatchName

Optional

System.String

The BatchName parameter specifies the name that was given to a batch move request.

You can't use this parameter in conjunction with the Identity parameter.

Credential

Optional

System.Management.Automation.PSCredential

The Credential parameter specifies the user name and password to use to access Active Directory.

This parameter requires the creation and passing of a credential object. This credential object is created by using the Get-Credential cmdlet. For more information, see Get-Credential.

If you don't specify the Credential parameter, the credential of the current user is used.

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that retrieves data from Active Directory.

HighPriority

Optional

System.Boolean

The HighPriority parameter specifies the cmdlet returns requests that were created with the HighPriority flag. The HighPriority flag indicates that the request should be processed before other lower priority requests in the queue.

You can't use this parameter in conjunction with the Identity parameter.

MoveStatus

Optional

Microsoft.Exchange.Data.Directory.Recipient.RequestStatus

The MoveStatus parameter returns move requests in the specified status. You can use the following values:

  • AutoSuspended

  • Completed

  • CompletedWithWarning

  • CompletionInProgress

  • Failed

  • InProgress

  • None

  • Queued

  • Suspended

You can't use this parameter in conjunction with the Identity parameter.

MultiTenant

Optional

System.Management.Automation.SwitchParameter

This parameter is available for multi-tenant deployments. It isn't available for on-premises deployments. For more information about multi-tenant deployments, see Multi-Tenant Support.

The MultiTenant parameter specifies that the search should be performed across the entire forest, not just across the organization that's currently scoped.

You don't have to specify a value with this parameter.

Offline

Optional

System.Boolean

The Offline parameter returns mailboxes being moved in offline mode. This parameter accepts $true or $false.

You can't use this parameter in conjunction with the Identity parameter.

Organization

Optional

Microsoft.Exchange.Configuration.Tasks.OrganizationIdParameter

This parameter is available for multi-tenant deployments. It isn't available for on-premises deployments. For more information about multi-tenant deployments, see Multi-Tenant Support.

The Organization parameter specifies the organization in which you'll perform this action. This parameter doesn't accept wildcard characters, and you must use the exact name of the organization.

OrganizationalUnit

Optional

Microsoft.Exchange.Configuration.Tasks.OrganizationalUnitIdParameter

The OrganizationalUnit parameter specifies an organizational unit (OU) and is used to limit the results. If you use this parameter, you only get move requests that pertain to mailboxes in the container that you specify. You can use either the OU or the domain name. If you use the OU, you must specify the canonical name of the OU.

Protect

Optional

System.Boolean

The Protect parameter returns mailboxes being moved in protected mode. This parameter accepts $true or $false.

You can't use this parameter in conjunction with the Identity parameter.

RemoteHostName

Optional

Microsoft.Exchange.Data.Fqdn

The RemoteHostName parameter specifies the FQDN of the cross-forest organization from which you're moving the mailbox.

You can't use this parameter in conjunction with the Identity parameter.

ResultSize

Optional

Microsoft.Exchange.Data.Unlimited

The ResultSize parameter specifies the maximum number of results to return. If you want to return all requests that match the query, use unlimited for the value of this parameter. The default value is 1000.

SortBy

Optional

System.String

The SortBy parameter specifies the attribute by which to sort the results. You can sort by only one attribute at a time. The results are sorted in ascending order.

SourceDatabase

Optional

Microsoft.Exchange.Configuration.Tasks.DatabaseIdParameter

The SourceDatabase parameter specifies that all mailboxes being moved from the specified source database are returned. You can use the following values:

  • GUID of the database

  • Database name

You can't use this parameter in conjunction with the Identity parameter.

Suspend

Optional

System.Boolean

The Suspend parameter specifies whether to return mailboxes with moves that have been suspended. This parameter accepts $true or $false.

You can't use this parameter in conjunction with the Identity parameter.

SuspendWhenReadyToComplete

Optional

System.Boolean

The SuspendWhenReadytoComplete parameter specifies whether to return mailboxes that have been moved with the New-MoveRequest command and its SuspendWhenReadyToComplete switch. This parameter accepts $true or $false.

You can't use this parameter in conjunction with the Identity parameter.

TargetDatabase

Optional

Microsoft.Exchange.Configuration.Tasks.DatabaseIdParameter

The TargetDatabase parameter specifies whether to return all mailboxes that are being moved to the specified target database. You can use the following values:

  • GUID of the database

  • Database name

You can't use this parameter in conjunction with the Identity parameter.

Input Types

To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.

Return Types

To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.

Examples

EXAMPLE 1

This example retrieves the status of the ongoing mailbox move for Tony Smith's mailbox (tony@contoso.com).

Copy Code
Get-MoveRequest -Identity 'tony@contoso.com'

EXAMPLE 2

This example retrieves the status of ongoing mailbox moves to the target database DB05.

Copy Code
Get-MoveRequest -MoveStatus InProgress -TargetDatabase DB05

EXAMPLE 3

This example retrieves the status of move requests in the FromDB01ToDB02 batch that completed, but had warnings.

Copy Code
Get-MoveRequest -BatchName "FromDB01ToDB02" -MoveStatus CompletedWithWarning