Unregister-SPOHubSite

对网站禁用中心网站功能。

语法

Default (默认值)

Unregister-SPOHubSite
    [-Identity] <SpoHubSitePipeBind>
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

说明

禁用站点上的中心站点功能,使其不再是中心站点。 关联网站可能仍显示为关联长达一小时。 如果要加快此过程,请先使用 Remove-SPOHubSiteAssociation cmdlet 删除关联的网站。

注意

如果站点不存在,此 cmdlet 将返回“找不到文件”错误。

示例

示例 1

Unregister-SPOHubSite -Identity <guid>

此示例基于唯一的中心标识符 (<guid>) 从中心站点列表中删除站点。

示例 2

Unregister-SPOHubSite -Identity https://contoso.sharepoint.com/sites/Marketing

此示例禁用营销网站上的中心功能。

参数

-Confirm

适用:SharePoint Online

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

参数属性

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

参数集

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

-Force

适用:SharePoint Online

是否在不提示确认的情况下禁用中心站点功能。

参数属性

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

参数集

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

-Identity

适用:SharePoint Online

用于禁用中心网站功能的站点的基于 Guid 的标识符或 URL。 如果中心网站已被删除,则需要使用基于 Guid 的标识符从中心网站列表中删除站点。

参数属性

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

参数集

(All)
Position:0
必需:True
来自管道的值:True
来自管道的值(按属性名称):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

输入

Microsoft.Online.SharePoint.PowerShell.SpoHubSitePipeBind

输出

System.Object