Start-SPOUserAndContentMove

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

语法

Default (默认值)

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

适用:SharePoint Online

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

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:2
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Notify

适用:SharePoint Online

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

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:5
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-PreferredMoveBeginDate

适用:SharePoint Online

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

参数属性

类型:System.DateTime
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:3
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-PreferredMoveEndDate

适用:SharePoint Online

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

参数属性

类型:System.DateTime
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:4
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Reserved

适用:SharePoint Online

保留。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:6
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-UserPrincipalName

适用:SharePoint Online

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

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:1
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ValidationOnly

适用:SharePoint Online

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

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:7
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

None

输出

System.Object