Horton Scientific

Migration script

Export SharePoint Site Inventory

```powershell

Export SharePoint Site Inventory

Use at your own risk. Test in a non-production tenant first and confirm permissions before running.

Connect-PnPOnline -Url https://contoso-admin.sharepoint.com -Interactive
$sites = Get-PnPTenantSite -Detailed
$sites | Select-Object Url, Title, Template, StorageUsageCurrent, Owner, LastContentModifiedDate | Export-Csv .\sharepoint-site-inventory.csv -NoTypeInformation

Use this as an early discovery step before SharePoint Online migration planning.

Planning a move into Microsoft?

Start with a readiness assessment, book a migration strategy call, or buy Pay-As-You-Go hours for urgent help.