Forum Discussion

Justin_J945's avatar
Justin_J945
Copper Contributor
Oct 21, 2019
Solved

Find all SharePoint sites associated with a hub site

I am sure this question might have been answered already, but I couldn't locate. Is it possible to use PowerShell to find all SharePoint sites associated with a specific hub site?   J Justin  
  • jcgonzalezmartin's avatar
    Oct 21, 2019
    Yes, it's possible...but a little bit tricky:
    - You need the Hub Site Id
    - Then you can use the $SPOSites = Get-SPOSite -Limit ALL and simply match for every site the HubSiteId property with the Hub Site Id

Resources