- Start your windows PowerShell on your computer.
- Right click and select Run as administrator option.
- Paste the below script on the PowerShell window and click the enter button.
- Check your SharePoint site Feature will activated successfully.
- $context = Connect-SPOSite https://gauti.sharepoint.com
- $creation = New-Object Microsoft.SharePoint.Client.WebCreationInformation
- $creation.Url = "TestWeb"
- $creation.Title = "TestWebName"
- $newWeb = context.Web.Webs.Add($creation)
- # Retrieve the new web information.
- Load-CSOMProperties -object $newWeb -propertyNames @("Title")
- $context.ExecuteQuery()
Hope you have enjoyed this.

Gowtham RajamanickamPosted Apr 6, 2016, 4:54 AM
Thanks nandeee
Gowtham RajamanickamPosted Apr 6, 2016, 4:54 AM
Thanks Vijay
Nanddeep NachanPosted Feb 15, 2016, 5:11 AM
How to check if site pre-exists?
Nanddeep NachanPosted Feb 15, 2016, 5:10 AM
Nice share
Vijay SPosted Jun 17, 2015, 9:19 AM
Good one