共用方式為


Revoke-SPOHubSiteRights

撤銷中樞之指定主體的許可權。

語法

Default (預設值)

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

Description

撤銷指定中樞網站之指定主體的許可權。 指定的主體將無法再建立網站與中樞的關聯。 若要尋找哪些主體可以存取中樞網站,請使用 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