Get information of sites from SharePoint Online via Powershell

1

So here is a very useful code that I found which is very useful when you want to estimate a migration activity. This code will help you get information of sites from SharePoint Online namely Lists and Libraries, Item Count etc.

Reference Link: http://www.sharepointfire.com/2016/01/get-site-web-and-list-information-with-powershell-for-sharepoint-online/

Code:

Save the code to a .ps1  file e.g. “O365InfoScript.ps1”

Open the SharePoint Management Shell and run the .ps1 script

You will be asked the following

  1. Admin URL
  2. User name
  3. Password

The script will give you information of all site collections and sub sites in it.

1 thought on “Get information of sites from SharePoint Online via Powershell

Leave a Reply