Get all sites associated with a SharePoint Online Hub Site
Connect-PnPOnline -Url https://[tenant]-admin.sharepoint.com# get the hub site id $hubSite = Get-PnPTenantSite "https://[tenant].sharepoint.com/sites/intranet" $hubSiteId = $hubSite.HubSiteId# get all sites associated to the hub $sites = Get-PnPTenantSite -Detailed $sites | select url | % { $s = Get-PnPTenantSite $_.url if($s.hubsiteid -eq $hubSiteId){ write-host $s.url ...
04 July, 2019
/ 0 Comments