Applies to: Exchange Server 2013

Topic Last Modified: 2013-01-18

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.

For information about the parameter sets in the Syntax section below, see Syntax.

Syntax

Get-MoveRequest [-AccountPartition <AccountPartitionIdParameter>] [-Identity <MoveRequestIdParameter>] [-IncludeSoftDeletedObjects <SwitchParameter>] <COMMON PARAMETERS>
Get-MoveRequest [-AccountPartition <AccountPartitionIdParameter>] [-BatchName <String>] [-Flags <None | CrossOrg | IntraOrg | Push | Pull | Offline | Protected | RemoteLegacy | HighPriority | Suspend | SuspendWhenReadyToComplete | MoveOnlyPrimaryMailbox | MoveOnlyArchiveMailbox>] [-HighPriority <$true | $false>] [-IncludeSoftDeletedObjects <SwitchParameter>] [-MoveStatus <None | Queued | InProgress | AutoSuspended | CompletionInProgress | Completed | CompletedWithWarning | Suspended | Failed>] [-Offline <$true | $false>] [-Protect <$true | $false>] [-RemoteHostName <Fqdn>] [-SourceDatabase <DatabaseIdParameter>] [-Suspend <$true | $false>] [-SuspendWhenReadyToComplete <$true | $false>] [-TargetDatabase <DatabaseIdParameter>] <COMMON PARAMETERS>
COMMON PARAMETERS: [-Credential <PSCredential>] [-DomainController <Fqdn>] [-Organization <OrganizationIdParameter>] [-OrganizationalUnit <OrganizationalUnitIdParameter>] [-ResultSize <Unlimited>] [-SortBy <String>]

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

Detailed Description

The search criteria for the Get-MoveRequest 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 Recipients Permissions topic.

Parameters

Parameter Required Type Description

AccountPartition

Optional

Microsoft.Exchange.Configuration.Tasks.AccountPartitionIdParameter

This parameter is reserved for internal Microsoft use.

BatchName

Optional

System.String

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

You can't use this parameter 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.

Flags

Optional

Microsoft.Exchange.Data.Directory.Recipient.RequestFlags

The Flags parameter specifies the move type to retrieve information for. The following values may be used:

  • None

  • CrossOrg

  • IntraOrg

  • Push

  • Pull

  • Offline

  • Protected

  • RemoteLegacy

  • HighPriority

  • Suspend

  • SuspendWhenReadyToComplete

  • MoveOnlyPrimaryMailbox

  • MoveOnlyArchiveMailbox

HighPriority

Optional

System.Boolean

The HighPriority parameter specifies that 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 with the Identity parameter.

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:

  1. GUID distingushed name

  2. Domain\User

  3. User principal name (UPN)

  4. Legacy Exchange SMTP addressAlias

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

  • BatchName

  • HighPriority

  • MoveStatus

  • Offline

  • Protect

  • RemoteHostName

  • SourceDatabase

  • Suspend

  • SuspendWhenReadyToComplete

  • TargetDatabase

IncludeSoftDeletedObjects

Optional

System.Management.Automation.SwitchParameter

The IncludeSoftDeletedObjects parameter specifies whether to return mailboxes that have been soft deleted. This parameter accepts $true or $false.

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 with the Identity parameter.

Offline

Optional

System.Boolean

The Offline parameter specifies whether to return mailboxes that are being moved in offline mode. This parameter accepts $true or $false.

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

Organization

Optional

Microsoft.Exchange.Configuration.Tasks.OrganizationIdParameter

This parameter is reserved for internal Microsoft use.

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 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 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 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 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 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 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.