In this post we will learn how to create SharePoint site/sub site using PowerShell scripts. Again it is not mandatory to create this in PowerShell but its another way of creating it. We can definitely create it using UI as well.
Note: Before going through the please go through my first post in power shell series which convers how to use PS scripts.
Below is the syntax and example to create the site using PowerShell script.
New-SPWeb _URL<Here we need to replace it with site URL> -name <Name of the sub site> -template <Site template need to be used while creating>
Example:
New-SPWeb –Url "http://blogspot/SubSite" -Name "Subsite" -template STS#0
No comments:
Post a Comment