Get-MigrationUser

此 cmdlet 可在本地 Exchange 和基于云的服务中使用。 一些参数和设置可能只适用于某个特定的环境。

使用 Get-MigrationUser cmdlet 查看有关移动和迁移用户的信息。

有关以下语法部分的参数设置的详细信息,请参阅 Exchange cmdlet 语法

语法

Get-MigrationUser
   -MailboxGuid <Guid>
   [-DomainController <Fqdn>]
   [-IncludeAssociatedUsers]
   [-ResultSize <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [<CommonParameters>]
Get-MigrationUser
   [-BatchId <MigrationBatchIdParameter>]
   [-Status <MigrationUserStatus>]
   [-StatusSummary <MigrationUserStatusSummary>]
   [-DomainController <Fqdn>]
   [-IncludeAssociatedUsers]
   [-ResultSize <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [<CommonParameters>]
Get-MigrationUser
   [[-Identity] <MigrationUserIdParameter>]
   [-DomainController <Fqdn>]
   [-IncludeAssociatedUsers]
   [-ResultSize <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [<CommonParameters>]
Get-MigrationUser
   -EmailAddress <SmtpAddress>
   [-DomainController <Fqdn>]
   [-IncludeAssociatedUsers]
   [-ResultSize <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [<CommonParameters>]

说明

您必须先获得权限,然后才能运行此 cmdlet。 虽然本主题中列出了此 cmdlet 的所有参数,但如果这些参数并未包含在分配给您的权限中,那么您将无法使用这些参数。 若要查找在贵组织中运行任何 cmdlet 或参数所需的权限,请参阅 Find the permissions required to run any Exchange cmdlet

示例

示例 1

Get-MigrationUser -Identity TonySmith@contoso.com

此示例检索有关最近迁移的用户 Tony Smith 的状态信息。

示例 2

Get-MigrationUser -MailboxGuid b6a6795c-a010-4f67-aaaa-da372d56fcb9 | Get-MigrationUserStatistics

此示例检索有关具有指定邮箱 GUID 的用户正在进行的任何迁移的更多详细信息。

示例 3

Get-MigrationUser -EmailAddress TonySmith@contoso.com

此示例检索有关最近迁移的用户 Tony Smith 的状态信息。

示例 4

Get-MigrationUser -EmailAddress TonySmith@contoso.com | Get-MigrationUserStatistics

此示例检索有关具有指定电子邮件地址的用户正在进行的任何迁移的更多详细信息。

参数

-BatchId

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Online

BatchId 参数指定要返回用户的迁移批处理的名称。

类型:MigrationBatchIdParameter
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-DomainController

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019

此参数只在本地 Exchange 中可用。

DomainController 参数指定此 cmdlet 从 Active Directory 读取数据或向其写入数据时使用的域控制器。 可以使用完全限定的域名 (FQDN) 来标识域控制器。 例如,dc01.contoso.com。

类型:Fqdn
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-EmailAddress

适用:Exchange Online

EmailAddress 参数指定要检索其信息的特定用户。 EmailAddress 参数表示为电子邮件地址。 此参数仅在基于云的服务中可用。

类型:EmailAddress
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-Identity

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Online

Identity 参数指定要检索其相关信息的特定正在进行的迁移。 Identity 参数通常表示为电子邮件地址。

类型:MigrationUserIdParameter
Position:1
默认值:None
必需:False
接受管道输入:True
接受通配符:False

-IncludeAssociatedUsers

适用:Exchange Online

此参数仅在基于云的服务中可用。

{{ Fill IncludeAssociatedUsers Description }}

类型:SwitchParameter
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-MailboxGuid

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Online

MailboxGuid 参数指定要查看其迁移信息的邮箱的 GUID。

类型:Guid
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-Partition

适用:Exchange Online

此参数仅在基于云的服务中可用。

保留此参数以供 Microsoft 内部使用。

类型:MailboxIdParameter
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-ResultSize

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Online

ResultSize 参数指定了要返回的结果的最大数量。 若要返回所有与查询相匹配的请求,则请将此参数的值设为无限制。 默认值为 1000。

类型:Unlimited
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-Status

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Online

Status 参数返回有关具有指定状态的迁移用户的信息。 使用下列值之一:

  • 已完成
  • CompletedWithWarnings
  • 完成
  • CompletionFailed
  • CompletionSynced
  • 已损坏
  • 已失败
  • IncrementalFailed
  • IncrementalStopped
  • IncrementalSynced
  • IncrementalSyncing
  • 预配
  • ProvisionUpdating
  • 已排队
  • 删除
  • 即将开始
  • 已停止
  • 停止
  • 已同步
  • 正在同步
  • Validating
类型:MigrationUserStatus
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-StatusSummary

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Online

StatusSummary 参数返回有关具有指定状态值的迁移用户的缩写信息。 使用下列值之一:

  • 活动
  • 已完成
  • 已失败
  • 已停止
  • 已同步
类型:MigrationUserStatusSummary
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

输入

Input types

若要了解此 cmdlet 接受的输入类型,请参阅 cmdlet 的输入和输出类型。 如果 cmdlet 的"输入类型"字段为空,则表明此 cmdlet 不接受输入数据。

输出

Output types

若要了解此 cmdlet 接受的返回类型(亦称为"输出类型"),请参阅 cmdlet 的输入和输出类型。 如果"输出类型"字段为空,则表明此 cmdlet 不返回任何数据。