Powershell to get the details of all the SharePoint Online site collections along with creation date

MVP

Hi Folks ,

  I'm looking for a PowerShell script to create a SharePoint Online site inventory . I used the below mentioned Powershell command which almost gives all the details I'm looking for except the site creation date . Could someone help me with a command or perhaps a script which gives all the details about all the SharePoint Online site collections including the creation date ?

 

The report which I get from the modern SP admin centre doesn't give all the details I'm looking for even though it gives the creation date .

 

Get-SPOSite -Limit All | Export-CSV -LiteralPath G:\SiteInventory.csv -NoTypeInformation

4 Replies

I think you're issue is that you are looking at the site collection itself, and this object doesn't have a Created date property.  If you load the root web of that site collection, it will have the $web.Created property you're looking for.