Using this PS script we can get inventory all sites within a SharePoint Online (O365) site collection. All required parameters need to provide at runtime.
This script will help to track how many sites and collections you have on your (O365) platforms. We can run this script using Powershell console or Powershell ISE
Thank you !
Please feel free if you have any questions.