Set-SPOHubSite

Sets the hub site information such as name, logo, and description.

Syntax

Set-SPOHubSite
   [-Identity] <SpoHubSitePipeBind>
   [-Title <string>]
   [-LogoUrl <string>]
   [-Description <string>]
   [-SiteDesignId <guid>]
   [-RequiresJoinApproval <bool>]
   [<CommonParameters>]

Description

Use this cmdlet to set properties such as name, logo, and description. These properties appear for the hub in the SharePoint user interface.

If the hub site doesn't exist, this cmdlet returns a "File not found" error.

Examples

Example 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"

This example updates the name of the hub displayed in the SharePoint user interface. It also updates the logo used in the hub navigation, and specifies an optional description for the hub.

Parameters

-Description

A description of the hub site.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-Identity

URL of the hub site.

Type:SpoSitePipeBind
Aliases:HubSite
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-LogoUrl

The URL of a logo to use in the hub navigation.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-RequiresJoinApproval

Determines if joining a Hub site requires approval.

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-SiteDesignId

Site Design ID, for example 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

The display name of the hub.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online