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.  

3.9 Star
3,319 times
Add to favorites
Office 365
E-mail Twitter Digg Facebook
  • 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 
      can you please help me