Commands › SharePoint Online

Get-SPOHubSite

SharePoint Online Microsoft.Online.SharePoint.PowerShell Get-*

Lists hub sites or hub site information.

Quick start script

# Get-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
Get-SPOHubSite | Format-List

# 3. Export for evidence / drift tracking
Get-SPOHubSite | Export-Clixml .\SPOHubSite-$(Get-Date -Format yyyyMMdd).xml

Syntax

Get-SPOHubSite [[-Identity] <SpoHubSitePipeBind>] [<CommonParameters>]

Parameters (1)

ParameterTypeRequiredWhat it controls
-Identity SpoHubSitePipeBind URL of the hub site. If not specified, the cmdlet lists all hub sites in the tenant.

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