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 移动到欧元目标。

示例 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 到 EUR 目标,首选开始时间窗口为移动计划操作后的 1 到 12 小时。

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