Register-PnPHubSite

Registers a site as a hubsite

Syntax

Register-PnPHubSite
        -Site <SitePipeBind>
                           [-Connection <SPOnlineConnection>]

Description

Registers a site as a hubsite

Examples

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

Register-PnPHubSite -Site https://tenant.sharepoint.com/sites/myhubsite

This example registers the specified site as a 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
-Site

The site to register as a hubsite

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