- 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 RajamanickamTOP 100Posted Apr 6, 2016, 12:54 AM EDT
Thanks nandeee
Gowtham RajamanickamTOP 100Posted Apr 6, 2016, 12:54 AM EDT
Thanks Vijay
Nanddeep NachanTOP 100Posted Feb 15, 2016, 12:11 AM EST
How to check if site pre-exists?
Nanddeep NachanTOP 100Posted Feb 15, 2016, 12:10 AM EST
Nice share
Vijay SPosted Jun 17, 2015, 5:19 AM EDT
Good one