Get-SPOHubSite [-Identity] <SpoHubSitePipeBind>[<CommonParameters>]
Lists all hub sites found on the SharePoint tenant. If you provide -Identity the cmdlet returns detailed information about the specific hub. You can find which hub a site is associated with by providing the site's identity with this cmdlet.
This cmdlet is currently in preview and is subject to change. It is not currently supported for use in production environments.
If the hub site doesn’t exist, this cmdlet returns a “File not found” error.
This example lists all hub sites in the tenant.
Get-SPOHubSite https://contoso.sharepoint.com/sites/online-marketing ID : 44252d09-62c4-4913-9eb0-a2a8b8d7f863 Title : Marketing Hub SiteId : 44252d09-62c4-4913-9eb0-a2a8b8d7f863 SiteUrl : https://contoso.sharepoint.com/sites/Marketing LogoUrl : https://contoso.sharepoint.com/sites/Marketing/SiteAssets/hublogo.png Description : Hub for the Marketing division Rights : firstname.lastname@example.org
This example begins with the online-marketing site. The cmdlet finds the associated hub site, which is marketing. Then it lists all the details about the marketing hub site.
URL of the hub site. If not specified, the cmdlet lists all hub sites in the tenant.
|Accept pipeline input:||False|
|Accept wildcard characters:||False|
|Applies to:||SharePoint Online|