Register-PnPHubSite

Tip

We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Register-PnPHubSite.md to change this file.

Required Permissions

  • SharePoint: Access to the SharePoint Tenant Administration site

Registers a site as a hubsite

Syntax

Register-PnPHubSite
        -Site <SitePipeBind>
        [-Connection <PnPConnection>]
        [<CommonParameters>]

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:PnPConnection
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Site

The site to register as a hubsite

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