Export (0) Print
Expand All

Get-MoveRequest

Applies to: Exchange Server 2010

Topic Last Modified: 2011-03-19

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


Get-MoveRequest [-Identity <MoveRequestIdParameter>] [-Credential <PSCredential>] [-DomainController <Fqdn>] [-Organization <OrganizationIdParameter>] [-OrganizationalUnit <OrganizationalUnitIdParameter>] [-ResultSize <Unlimited>] [-SortBy <String>]


Get-MoveRequest [-BatchName <String>] [-Credential <PSCredential>] [-DomainController <Fqdn>] [-MoveStatus <Nullable>] [-Offline <Nullable>] [-Organization <OrganizationIdParameter>] [-OrganizationalUnit <OrganizationalUnitIdParameter>] [-Protect <Nullable>] [-RemoteHostName <Fqdn>] [-ResultSize <Unlimited>] [-SortBy <String>] [-SourceDatabase <DatabaseIdParameter>] [-Suspend <Nullable>] [-SuspendWhenReadyToComplete <Nullable>] [-TargetDatabase <DatabaseIdParameter>]

Parameter Required Type Description

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.

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

MoveStatus

Optional

System.Nullable

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

  • AutoSuspended
  • Completed
  • CompletedWithWarning
  • CompletionInProgress
  • Failed
  • InProgress
  • None
  • Queued
  • ReadyToComplete
  • Suspended

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

Offline

Optional

System.Nullable

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

The Organization 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.Nullable

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 move 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 returns all mailboxes being moved from the specified source database. You can use the following values:

  • GUID of the database
  • Database name
  • Server name\database name

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

Suspend

Optional

System.Nullable

The Suspend parameter returns 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.Nullable

The SuspendWhenReadytoComplete parameter returns 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 returns all mailboxes that are being moved to the specified target database. You can use the following values:

  • GUID of the database
  • Database name
  • Server name\database name

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

The search criteria for Get-MoveRequests 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 move" entry in the Mailbox Permissions topic.

Error Description

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

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

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

Get-MoveRequest -MoveStatus InProgress -TargetDatabase DB05

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

Get-MoveRequest -BatchName "FromDB01ToDB02" -MoveStatus CompletedWithWarning
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft