Revoke-SPOHubSiteRights

将指定主体的权限撤销到中心。

语法

Default (默认值)

Revoke-SPOHubSiteRights
    [-Identity] <SpoHubSitePipeBind>
    -Principals <String[]>
    [<CommonParameters>]

说明

撤销对给定中心站点的指定主体的权限。 指定的主体将无法再将网站与中心关联。 若要查找哪些主体有权访问中心网站,请使用 Get-SPOHubSite cmdlet。

注意

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

示例

示例 1

Revoke-SPOHubSiteRights https://contoso.sharepoint.com/sites/Marketing `
-Principals "nestorw@contoso.onmicrosoft.com"

此示例演示如何撤销权限,以便 Nestor 无法再将网站加入营销中心网站。

参数

-Identity

适用:SharePoint Online

中心网站的 URL。

参数属性

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

参数集

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

-Principals

适用:SharePoint Online

要撤消其权限的一个或多个主体。

参数属性

类型:

System.String[]

默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值: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