Commands › SharePoint Online

Set-SPOHubSite

SharePoint Online Microsoft.Online.SharePoint.PowerShell Set-*

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

Quick start script

# Set-SPOHubSite — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-SPOHubSite
$before | Format-List

# 3. Make the change
Set-SPOHubSite -Identity <SpoHubSitePipeBind>

# 4. Verify and diff
$after = Get-SPOHubSite
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Set-SPOHubSite [-Identity] <SpoHubSitePipeBind> [-Title <String>] [-LogoUrl <String>] [-Description <String>]
 [-SiteDesignId <Guid>] [-RequiresJoinApproval <Boolean>] [-HideNameInNavigation <Boolean>]
 [-EnablePermissionsSync <Boolean>] [<CommonParameters>]

Parameters (8)

ParameterTypeRequiredWhat it controls
-Description String A description of the hub site.
-EnablePermissionsSync Boolean Whether to enable permission sync to the associated sites.
-HideNameInNavigation Boolean Whether to include the hub site name and logo in the hub site navigation.
-Identity SpoHubSitePipeBind yes URL of the hub site.
-LogoUrl String The URL of a logo to use in the hub navigation.
-RequiresJoinApproval Boolean Determines if joining a Hub site requires approval.
-SiteDesignId Guid Site Design ID, for example db752673-18fd-44db-865a-aa3e0b28698e
-Title String The display name of the hub.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.