Set-SPOHubSite
設定中樞網站資訊,例如名稱、標誌和描述。
Syntax
Set-SPOHubSite
[-Identity] <SpoHubSitePipeBind>
[-Title <string>]
[-LogoUrl <string>]
[-Description <string>]
[-SiteDesignId <guid>]
[-RequiresJoinApproval <bool>]
[<CommonParameters>]
Description
使用此 Cmdlet 來設定屬性,例如名稱、標誌和描述。 這些屬性會出現在 SharePoint 使用者介面中的中樞。
如果中樞網站不存在,此 Cmdlet 會傳回「找不到檔案」錯誤。
範例
範例 1
Set-SPOHubSite https://contoso.sharepoint.com/sites/Marketing `
-Title "Marketing Hub" `
-LogoUrl https://contoso.sharepoint.com/sites/Marketing/SiteAssets/hublogo.png `
-Description "Hub for the Marketing division"
此範例會更新 SharePoint 使用者介面中顯示的中樞名稱。 它也會更新中樞導覽中使用的標誌,並指定中樞的選擇性描述。
參數
-Description
中樞網站的描述。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Identity
中樞網站的 URL。
Type: | SpoSitePipeBind |
Aliases: | HubSite |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-LogoUrl
要在中樞導覽中使用的標誌 URL。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-RequiresJoinApproval
判斷加入中樞網站是否需要核准。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SiteDesignId
網站設計識別碼,例如 db752673-18fd-44db-865a-aa3e0b28698e
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Title
中樞的顯示名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |