Commands › SharePoint Online
Set-SPOHubSite
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)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.