Get-SPOUserAndContentMoveState

此 cmdlet 允许 SharePoint 管理员检查用户或站点跨地理位置移动的状态。

语法

Get-SPOUserAndContentMoveState
   [-Limit <UInt32>]
   [-MoveDirection <Direction>]
   [-MoveEndTime <DateTime>]
   [-MoveStartTime <DateTime>]
   [-MoveState <State>]
   [<CommonParameters>]
Get-SPOUserAndContentMoveState
   -OdbMoveId <Guid>
   [<CommonParameters>]
Get-SPOUserAndContentMoveState
   -UserPrincipalName <String>
   [<CommonParameters>]

说明

此命令获取 SharePoint Online 多地理位置租户中网站之间的用户移动请求的信息和状态。

以下是可用的移动状态:

状态 说明
ReadyToTrigger 管理员已准备好启动移动。
NotStarted 移动尚未开始。
InProgress 移动处于以下状态之一:验证、备份、还原、清理。
Success 移动已成功完成。
Failed 移动失败。

示例

示例 1

Get-SPOUserAndContentMoveState -OdbMoveId b298219e-3440-10b8-8931-46e805e2b85b

通过 OneDrive 移动作业 ID 获取移动状态

示例 2

Get-SPOUserAndContentMoveState -MoveState NotStarted

获取在特定状态下正在执行的移动

示例 3

Get-SPOUserAndContentMoveState -MoveDirection All

提供用户从登录的地理位置移入和移出的用户的输出

示例 4

Get-SPOUserAndContentMoveState -MoveDirection In

为进入你登录的地理位置的用户提供输出

示例 5

Get-SPOUserAndContentMoveState -MoveDirection Out

提供用户从登录的地理位置移出的输出

示例 6

Get-SPOUserAndContentMoveState -UserPrincipalName jezz@contoso.com

获取的移动状态 jezz@contoso.com

参数

-Limit

获取对参数的单个调用的用户限制

Type:UInt32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-MoveDirection

允许您定义相对于当前 SharePoint 位置的用户移动方向

Type:Direction
Accepted values:All, MoveIn, MoveOut
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-MoveEndTime

允许你获取计划在特定时间结束的移动,如 UTC 中定义

Type:DateTime
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-MoveStartTime

允许你获取计划在特定时间开始的移动,如 UTC 中定义

Type:DateTime
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-MoveState

移动状态当前状态。

Type:State
Accepted values:All, NotStarted, Scheduled, InProgress, Stopped, Success, Failed
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-OdbMoveId

启动作业时获取的 OneDrive GUID MoveID。

Type:Guid
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-UserPrincipalName

用户主体名称是 Azure AD 上每个用户的唯一属性。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online