PowerShell to Create SharePoint Online Sub Sites, Libraries/Lists and Activate FeaturesPowerShell to Create SharePoint Online Sub Sites, Libraries/Lists and Activate Features
This Powershell script isalso explained in the article below
Install SharePoint Online SDK here: https://www.microsoft.com/en-us/download/details.aspx?id=42038
To execute the PowerShell script we will have to update the below variables located at the end of the script.
$siteCollectionUrl = ''
$username = ''
$password = ''
Note: This script requires the site collection with the root site to be created manually.