Start-SPOSiteContentMove

启动作业以移动要跨地理位置移动的特定用户或用户组(相对于执行命令的用户)

语法

UrlAndDestinationDataLocation (默认值)

Start-SPOSiteContentMove
    [-SourceSiteUrl] <String>
    [-DestinationDataLocation] <String>
    [[-PreferredMoveBeginDate] <DateTime>]
    [[-PreferredMoveEndDate] <DateTime>]
    [[-Reserved] <String>]
    [-ValidationOnly]
    [-Force]
    [-SuppressMarketplaceAppCheck]
    [-SuppressWorkflow2013Check]
    [-SuppressAllWarnings]
    [-SuppressBcsCheck]
    [<CommonParameters>]

UrlAndDestinationUrl

Start-SPOSiteContentMove
    [-SourceSiteUrl] <String>
    [-DestinationUrl] <String>
    [[-PreferredMoveBeginDate] <DateTime>]
    [[-PreferredMoveEndDate] <DateTime>]
    [[-Reserved] <String>]
    [-ValidationOnly]
    [-Force]
    [-SuppressMarketplaceAppCheck]
    [-SuppressWorkflow2013Check]
    [-SuppressAllWarnings]
    [-SuppressBcsCheck]
    [<CommonParameters>]

说明

UrlAndDestinationDataLocation:这些参数允许 SharePoint 管理员在计划异地移动之前对其进行验证。

UrlAndDestinationUrl:这些参数允许 SharePoint 管理员移动和 (选择性地) 重命名网站作为异地移动作的一部分,方法是在目标 URL 中指定新的网站名称。 SharePoint Embedded 容器网站不支持重命名网站。

示例

示例 1

Start-SPOSiteContentMove -SourceSiteUrl https://contosoenergy.sharepoint.com/sites/hr -DestinationDataLocation EUR

开始将内容 https://contosoenergy.sharepoint.com/sites/hr 移动到 EUR 目标。

示例 2

Start-SPOSiteContentMove -SourceSiteUrl https://contosoenergy.sharepoint.com/sites/hr -DestinationDataLocation EUR -PreferredMoveBeginDate ((Get-Date).AddHours(1)) -PreferredMoveEndDate ((Get-Date).AddHour(12))

使用从移动 https://contosoenergy.sharepoint.com/sites/hr 计划作开始 1 到 12 小时的预设开始时间窗口,开始向 EUR 目标的站点异地移动。

示例 3

Start-SPOSiteContentMove -SourceSiteUrl https://contosoenergy.sharepoint.com/sites/hr -DestinationUrl https://contosoenergyEUR.sharepoint.com/sites/hrEU

启动 https://contosoenergy.sharepoint.com/sites/hr 站点异地移动,并允许将站点重命名 https://contosoenergyEUR.sharepoint.com/sites/hrEU 为 作为异地移动作的一部分。 SharePoint Embedded 容器网站不支持重命名网站。

参数

-DestinationDataLocation

适用:SharePoint Online

定义要移动的内容的新目标。 这是 3 个字母的数据位置值。

参数属性

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

参数集

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

-DestinationUrl

适用:SharePoint Online

如果管理员希望在移动过程中执行网站重命名,则目标 URL 是可选的。

参数属性

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

参数集

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

-Force

适用:SharePoint Online

是否在不提示确认的情况下启动移动过程。

参数属性

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

参数集

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

-PreferredMoveBeginDate

适用:SharePoint Online

指定开始移动作业的首选日期和时间。 这是一个首选项,将基于系统资源可用性遵循此首选项。

参数属性

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

参数集

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

-PreferredMoveEndDate

适用:SharePoint Online

指定停止移动作业启动的首选日期和时间。 这是一个首选项,将基于系统资源可用性遵循此首选项。 如果移动已在进行中,我们将完成移动。

参数属性

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

参数集

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

-Reserved

适用:SharePoint Online

保留供Microsoft内部使用。

参数属性

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

参数集

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

-SourceSiteUrl

适用:SharePoint Online

指定要移动的网站集的源 URL。

参数属性

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

参数集

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

-SuppressAllWarnings

禁止显示所有警告消息。

参数属性

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

参数集

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

-SuppressBcsCheck

禁止检查与关联网站一起使用的业务连接服务。

参数属性

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

参数集

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

-SuppressMarketplaceAppCheck

禁止检查部署到关联网站的市场 SharePoint 外接程序的兼容性。

参数属性

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

参数集

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

-SuppressWorkflow2013Check

禁止检查部署到关联网站的 SharePoint 2013 工作流的兼容性。

参数属性

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

参数集

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

-ValidationOnly

适用:SharePoint Online

此参数将执行验证检查是否可以移动网站,并且不会执行移动。

参数属性

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

参数集

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

CommonParameters

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

输入

None

输出

System.Object