Commands › SharePoint Online
Register-SPOHubSite
Enables the hub site feature on a site to make it a hub site. For more information visit SharePoint hub sites overview.
Quick start script
# Register-SPOHubSite — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com
# 2. Run and inspect
Register-SPOHubSite -Principals <String[]> -Site <SpoSitePipeBind> | Format-List
# 3. Export for evidence / drift tracking
Register-SPOHubSite | Export-Clixml .\SPOHubSite-$(Get-Date -Format yyyyMMdd).xml
Syntax
Register-SPOHubSite [-Site] <SpoSitePipeBind> -Principals <String[]> [<CommonParameters>]
Parameters (2)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.