共用方式為


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

Description

此命令會取得 SharePoint Online 多地理位置租用戶中網站之間用戶移動要求的信息和狀態。

以下是可用的移動狀態:

狀態 描述
ReadyToTrigger 移動已準備好由系統管理員起始。
NotStarted 移動尚未啟動。
InProgress 移動目前處於下列其中一種狀態:驗證、備份、還原、清除。
成功 已成功完成移動。
失敗 移動失敗。
已停止 系統管理員在移動仍排入佇列時已取消移動。
NotSupported 無法處理移動,因為慣用的數據位置無效。
改期 移動未成功,並再次排程進行另一次嘗試。

範例

範例 1

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

依 OneDrive 移動作業識別碼取得移動狀態

範例 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

在參數的單一呼叫上取得使用者的限制

類型:UInt32
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False
適用於:SharePoint Online

-MoveDirection

可讓您定義相對於您目前 SharePoint 位置的用戶移動方向

類型:Direction
接受的值:All, MoveIn, MoveOut
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False
適用於:SharePoint Online

-MoveEndTime

可讓您取得排程在特定時間結束的移動,如UTC中所定義

類型:DateTime
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False
適用於:SharePoint Online

-MoveStartTime

可讓您取得排程在特定時間開始的移動,如 UTC 中所定義

類型:DateTime
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False
適用於:SharePoint Online

-MoveState

移動狀態目前狀態。

類型:State
接受的值:All, NotStarted, Scheduled, InProgress, Stopped, Success, Failed
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False
適用於:SharePoint Online

-OdbMoveId

您在啟動作業時取得的 OneDrive GUID MoveID。

類型:Guid
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False
適用於:SharePoint Online

-UserPrincipalName

用戶主體名稱是每個使用者 Microsoft Entra ID 的唯一屬性。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False
適用於:SharePoint Online