Table of contents
TOC
Collapse the table of content
Expand the table of content

New-PnPWeb

Bert Jansen|Last Updated: 2/20/2017
|
1 Contributor

Creates a new subweb under the current web

Syntax

New-PnPWeb -Title <String>
           -Url <String>
           -Template <String>
           [-Description <String>]
           [-Locale <Int>]
           [-BreakInheritance [<SwitchParameter>]]
           [-InheritNavigation [<SwitchParameter>]]
           [-Web <WebPipeBind>]

Returns

Microsoft.SharePoint.Client.Web

Parameters

ParameterTypeRequiredDescription
TemplateStringTrueThe site definition template to use for the new web, e.g. STS#0. Use Get-PnPWebTemplates to fetch a list of available templates
TitleStringTrueThe title of the new web
UrlStringTrueThe URL of the new web
BreakInheritanceSwitchParameterFalseBy default the subweb will inherit its security from its parent, specify this switch to break this inheritance
DescriptionStringFalseThe description of the new web
InheritNavigationSwitchParameterFalseSpecifies whether the site inherits navigation.
LocaleIntFalse
WebWebPipeBindFalseThe web to apply the command to. Omit this parameter to use the current web.

Examples

Example 1

PS:> New-PnPWeb -Title "Project A Web" -Url projectA -Description "Information about Project A" -Locale 1033 -Template "STS#0"

Creates a new subweb under the current web with URL projectA

© 2017 Microsoft