Forum Discussion
Dec 13, 2018
Powershell to get the details of all the SharePoint Online site collections along with creation date
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
- Doug AllenIron Contributor
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.
- ashmon07Copper ContributorHow do you do this? I have SPO
- Thuyavan GanesanSteel Contributor
generate-content-inventory.ps1 -url "https://mycompany/sites/some_site" -outfile "some_site.txt"
https://github.com/picologic/sp-scripts/blob/master/generate-content-inventory.ps1Thuyavan Ganesan....This for SP on-premises ....I'm looking for SPO