Start-SPOUserAndContentMove

开始将用户移动到更靠近其站点的功能。

语法

Start-SPOUserAndContentMove
     [-UserPrincipalName] <String>
     [-DestinationDataLocation] <String>
     [[-PreferredMoveBeginDate] <DateTime>]
     [[-PreferredMoveEndDate] <DateTime>]
     [[-Notify] <String>]
     [[-Reserved] <String>]
     [-ValidationOnly]
     [<CommonParameters>]

说明

此 cmdlet 适用于多地理位置租户,旨在跨地理位置移动用户配置文件及其相应的 OneDrive 个人网站。 这些 cmdlet 只能由 SharePoint 或全局管理员运行,他们连接到用户当前托管的地理位置的 SharePoint 管理中心。

示例

示例 1

Start-SPOUserAndContentMove -UserPrincipalName username@contoso.onmicrosoft.com -DestinationDataLocation EUR

本示例将用户 username@contoso.onmicrosoft.com 从当前位置移动到欧洲位置, (EUR) 。

示例 2

Start-SPOUserAndContentMove -UserPrincipalName username@contoso.onmicrosoft.com -DestinationDataLocation JPN

本示例将用户 username@contoso.onmicrosoft.com 从当前位置移动到 JPN) (日语位置。

示例 3

Start-SPOUserAndContentMove -UserPrincipalName username@contoso.onmicrosoft.com -DestinationDataLocation EUR -PreferredMoveBeginDate ((Get-Date).AddHours(1)) -PreferredMoveEndDate ((Get-Date).AddHour(12))

本示例将用户 username@contoso.onmicrosoft.com 从其当前位置移动到欧洲位置, (欧元) ,并采用首选的移动日期。 对于希望计划其用户在营业时间外和周末移动的管理员,建议这样做。

参数

-DestinationDataLocation

定义要将用户移动到的目标位置。 请注意,只能将用户移动到其首选数据位置。 因此,在移动用户之前,必须更改其首选数据位置。

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

-Notify

提供 SPO 通知,指示用户正在移动。

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

-PreferredMoveBeginDate

指定开始移动的首选日期和时间。

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

-PreferredMoveEndDate

指定停止移动的首选日期和时间。 当管理员编写他们希望在一个时间范围内完成的大规模移动的脚本时,将重新通信。

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

-UserPrincipalName

为 SPO 租户上的特定用户定义的 UserPrincipalName 或 UPN

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

-ValidationOnly

使用此参数验证用户是否能够移动。 对于任何用户移动,建议使用此参数。

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