SharePoint Online: Get a list of sites in a site collection using PowerShell

This script allows you to get a list of all sites in a site collection in SharePoint Online / Office 365 using the Client Script Object Model.  This script requires references to the SharePoint Server 2013 Client Components SDK.  

SPOGetSites.ps1
 
 
 
 
 
3.9 Star
(11)
3,092 times
Add to favorites
Office 365
4/16/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • subsites and lower level of subsites
    1 Posts | Last post June 16, 2017
    • How to add to the script to get subsites and lower level of subsites?
  • When i execute your script i get errors
    1 Posts | Last post November 06, 2015
    • Hi CoreyRoth, i get the following errors when i try to execute your script
      1)Cannot find an overload for "Load" and the argument count: "1".
      2)format-default : The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly 
      requested.
      
      can you please help me
      thankyou