Get-PnPHubSite

Retrieve all or a specific hubsite.

Syntax

Get-PnPHubSite
   [-Connection <SPOnlineConnection>]

Examples

------------------EXAMPLE 1------------------

Get-PnPHubSite

Returns all hubsite properties

------------------EXAMPLE 2------------------

Get-PnPHubSite -Identity https://contoso.sharepoint.com/sites/myhubsite

Returns the properties of the specified hubsite

Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False