What it works with
Module: PnP.PowerShell
Context: PowerShell 7.4+ · SharePoint Online · PnP.PowerShell
Compatibility: PowerShell 7.4+ is required by current PnP.PowerShell releases.
Exports SharePoint hub sites and their associated sites as one topology report for administration, architecture review and migration preparation.
Generated locally in your browser · Runs in your PowerShell environment · Review before running
Exports SharePoint hub sites and their associated sites as one topology report for administration, architecture review and migration preparation.
Configure Export SharePoint hub sites and associations in the Builder, review the generated PowerShell and run it in your own environment.
Lists every hub returned by the tenant administration API and its associated sites. Hubs with no associated sites remain visible instead of disappearing from the report.
Current PnP.PowerShell releases require PowerShell 7.4 or later. Interactive authentication requires your own Entra application/client ID, or a default client ID that you have configured for PnP.PowerShell. Opselith does not connect to SharePoint or run the script on your behalf.
Exports SharePoint hub sites and their associated sites as one topology report for administration, architecture review and migration preparation. Review these details before generating or running the script.
Module: PnP.PowerShell
Context: PowerShell 7.4+ · SharePoint Online · PnP.PowerShell
Compatibility: PowerShell 7.4+ is required by current PnP.PowerShell releases.
Permissions: AllSites.Read · SharePoint Administrator
Risk: Low
Execution impact: Read-only. The script reads SharePoint hub-site metadata and associations and does not change hub registration or site associations.
Output: CSV report with HubId, HubTitle, HubUrl, AssociatedSiteUrl, AssociationStatus, Status and Error.
This template is available in the free library and is generated locally in your browser.
Exports SharePoint hub sites and their associated sites as one topology report for administration, architecture review and migration preparation.
Enter the required values in the Builder, review the generated script and confirm the output before running it.