Get-PnPHubSiteChild
SYNOPSIS
Required Permissions
- SharePoint: Access to the SharePoint Tenant Administration site
Retrieves all sites associated to a specific hub site
SYNTAX
Get-PnPHubSiteChild [-Identity <HubSitePipeBind>] [-Connection <PnPConnection>]
DESCRIPTION
Retrieves all sites associated to a specific hub site
EXAMPLES
EXAMPLE 1
Get-PnPHubSiteChild
Returns the sites which are associated to the currently connected to hub site
EXAMPLE 2
Get-PnPHubSiteChild -Identity "https://contoso.sharepoint.com/sites/myhubsite"
Returns the sites which are associated with the provided hub site as their hub site
EXAMPLE 3
Get-PnPHubSite | Get-PnPHubSiteChild
Returns all sites that are associated to a hub site
PARAMETERS
-Identity
The URL, Id or instance of the hubsite for which to receive the sites referring to it. If not provided, the currently connected to site will be used.
Type: HubSitePipeBind
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-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
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False