PowerShell - SharePointOnline - Queries the active site collections in O365 tenant to generate reports based on template type used by the site collection
# Requires Windows PowerShell version 3 $tenant = "" <# Description: Queries the active site collections in O365 tenant to generate reports based on template type used by the site collection. And will generate report with all site collections in tenant. Details of the discovered sites are written to a .csv file for each template type. The .csv files will be found in the directory the script is ran from. Requirements: SharePoint Online Management Shell - Current build http://www.microsoft.com/en-us/download/details.aspx?id=35588 ============================================================== #> # Set tenant values $SPOAdminCenter = "https:// $tenant -admin.sharepoint.com" $AdminCredential = "" #Report Files Names $reportNameGroups = "GroupsSiteInfo_ $(( Get-Date ) . ToString( "yyyy-MM-dd_hh.mm.ss" )) .c...