Hi guys,
I've found this PowerShell script particularly helpful for getting the list of sites and subsites:
Get-SPWebApplication http://site | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title, URL, ID, ParentWebID | Export-CSV C:\InfoArch.csv -NoTypeInformation
However, this script is for SharePoint On Premise and I'm using SharePoint Online
Thank you for your help
Codernater