Set-SPOHubSite

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

Syntax

Set-SPOHubSite
   [-Identity] <SpoHubSitePipeBind>
    [-Title <string>]
    [-LogoUrl <string>]
    [-Description <string>] 
   [<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.

Required Parameters

-Identity

URL of the hub site.

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

Optional Parameters

-Description

A description of the hub site.

Type:String
Position:Named
Default value:None
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
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
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online