Skip to content

Latest commit

 

History

History
81 lines (59 loc) · 2.26 KB

File metadata and controls

81 lines (59 loc) · 2.26 KB
external help file Module Name online version applicable title schema author ms.author ms.reviewer
sharepointonline.xml
Microsoft.Online.SharePoint.PowerShell
SharePoint Online
Get-SPOHubSite
2.0.0
trent-green
trgreen

Get-SPOHubSite

SYNOPSIS

Lists hub sites or hub site information.

SYNTAX

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

DESCRIPTION

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.

If the hub site doesn't exist, this cmdlet returns a "File not found" error.

Note

If a deleted hub site appears in the output of this cmdlet you may not have run Unregister-SPOHubSite on the deleted hub site.

EXAMPLES

Example 1

Get-SPOHubSite

This example lists all hub sites in the tenant.

Example 2

Get-SPOHubSite -Identity 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
Permissions          : {Wilke, Nestor}
SiteDesignId         : 00000000-0000-0000-0000-000000000000
RequiresJoinApproval : False
HideNameInNavigation : False

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.

PARAMETERS

-Identity

URL of the hub site. If not specified, the cmdlet lists all hub sites in the tenant.

Type: SpoSitePipeBind
Parameter Sets: (All)
Aliases:
Applicable: SharePoint Online

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False