Create a New Subsite
Scenario/Problem: You want to create sites under your site collection.
Solution: Use the New-SPWeb cmdlet from the SharePoint 2013 Management Shell.
To add a new subsite, use the New-SPWeb cmdlet as follows:
New-SPWeb -url <full url of new site> -name <name of new site>-template <site template to use>
A few switch parameters are available for the New-SPWeb cmdlet:
• AddToTopNav
• UniquePermissions
• UseParentTopNav
The AddToTopNav switch parameter places the new site within the top navigation of the site collection. Using the UseParentTopNav switch parameter replicates the top nav of the site collection onto the new subsite. Creating a site with UniquePermissions forces the site to not inherit permissions from the site ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access