Get SharePoint list detail for a site

This is one of the important reports to get details of list information for a SharePoint site or all sub sites under a site collection. I am sharing a PowerShell script which I have written for SharePoint online. I used SharePoint list properties to get details about the list title, Creation date, Last modified data, Date for last item deletion, No. of items in a list, Base Template, List GUID and few more.

The script is very simple, and you can easily modify it to get more properties. You can get the details of lists from different sites by using the below script by calling GetListDetails multiple times or modify so it can navigate through all sites.

PowerShell script to get report of all SharePoint Online lists

Below is the script to get list details for a SharePoint site:

You need to call the GetListDetail function which will generate the report for all the SharePoint lists. Below is the detail for function call and report output.

Get detail of all lists using PowerShell

The following two tabs change content below.
Adnan Amin
Adnan is two time SharePoint MVP (Most Valuable Professional) with over 12 years of extensive experience with major expertise on SharePoint Server, Office 365, .Net Platform and Microsoft BI. He is currently working SharePoint Architect at FMT Consultants. He is MCT Regional Lead for Pakistan Chapter since 2012. He is working on SharePoint for past nine years and worked on different intranet/intranet solutions for private & govt. sector majorly in Gulf region, which include OOB and customized solutions. He is a trainer, technology evangelist and also speaks in community forums.

Leave a Reply