Start-SPOSiteRename

注意

此功能是管理员中心预览版的一部分。 如果租户不是 管理员 Center Preview 的一部分,则尝试运行此 cmdlet 时会出现错误。

启动作业以重命名网站。 您可以更改 SharePoint Online 集合上网站的 URL 以及网站标题(可选)以及更改 URL。

语法

Default (默认值)

Start-SPOSiteRename
    -Identity <SpoSitePipeBind>
    -NewSiteUrl <String>
    [-NewSiteTitle <String>]
    [-SuppressMarketplaceAppCheck]
    [-SuppressWorkflow2013Check]
    [-SuppressAllWarnings]
    [-SuppressBcsCheck]
    [-ValidationOnly]
    [-Reserved <String>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

说明

此命令开始重命名 SharePoint Online 网站上的网站。 可以更改 URL,还可以更改网站标题以及更改 URL。 还允许使用 -WhatIf 参数以及 -SuppressWorkflow2013Check 和 SuppressMarketplaceAppCheck 开关参数来模拟运行。

示例

示例 1

$url="https://<tenant>.sharepoint.com/sites/samplesite"
$NewSiteUrl="https://<tenant>.sharepoint.com/sites/renamed"
Start-SPOSiteRename -Identity $url -NewSiteUrl $NewSiteUrl

将名称为“samplesite”的 SPO 网站重命名为“renamed”,而无需修改标题。

示例 2

$url="https://<tenant>.sharepoint.com/sites/samplesite"
$NewSiteUrl="https://<tenant>.sharepoint.com/sites/renamed"
$newTitle="New Title"
Start-SPOSiteRename -Identity $url -NewSiteUrl $NewSiteUrl -NewSiteTitle $newTitle

将 SPO 网站的名称“samplesite”重命名为“已重命名”,将网站的标题修改为“新标题”

示例 3

$url="https://<tenant>.sharepoint.com/sites/samplesite"
$NewSiteUrl="https://<tenant>.sharepoint.com/sites/renamed"
$newTitle="New Title"
Start-SPOSiteRename -Identity $url -NewSiteUrl $NewSiteUrl -NewSiteTitle $newTitle -SuppressMarketplaceAppCheck -SuppressWorkflow2013Check -WhatIf

启动名为“samplesite”的 SPO 网站的模拟 重命名,将其重命名为“renamed”,将网站标题修改为“新标题”,而不使用 MarketPlaceAppCheck 和 WorkFlow2013Check

参数

-Confirm

适用:SharePoint Online

提示你在运行 cmdlet 之前进行确认。

参数属性

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

参数集

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

-Identity

适用:SharePoint Online

指定网站集的原始 URL。

参数属性

类型:Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind
默认值:None
支持通配符:False
不显示:False

参数集

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

-NewSiteTitle

适用:SharePoint Online

指定网站的新标题。

参数属性

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

参数集

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

-NewSiteUrl

适用:SharePoint Online

指定新的所需 URL。

参数属性

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

参数集

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

-Reserved

适用:SharePoint Online

保留供Microsoft内部使用。

参数属性

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

参数集

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

-SuppressAllWarnings

适用:SharePoint Online

是否禁止显示所有警告消息。

参数属性

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

参数集

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

-SuppressBcsCheck

适用:SharePoint Online

是否超压检查租户是否使用 业务连接 服务 (BCS) 功能。

参数属性

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

参数集

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

-SuppressMarketplaceAppCheck

适用:SharePoint Online

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

参数属性

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

参数集

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

-SuppressWorkflow2013Check

适用:SharePoint Online

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

参数属性

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

参数集

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

-ValidationOnly

适用:SharePoint Online

验证是否可以更改站点地址。

参数属性

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

参数集

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

-WhatIf

适用:SharePoint Online

显示在 cmdlet 运行时发生的情况。 此 cmdlet 未运行。

参数属性

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

参数集

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

CommonParameters

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

输入

None

输出

System.Object