New-SPOWeb

Creates a new child Site within an existing Site.

New-SPOWeb -ParentWeb <SPOWebPipeBind> -Url <String> [-WebTemplate [<String>]] -Title <String> [-Description [<String>]] [-Language [<Int32>]] [-UniquePermissions [<SwitchParameter>]]

Parameters

1

ParameterRequiredTypeDescription
ParentWebTrueSPOWebPipeBind

Specifies the identity of the parent Site to create the new Site within.

The type must be a valid server relative URL, in the form /site_name, or an SPOWeb object, Microsoft.SharePoint.Client.Web object, or GUID representing the Site ID.

UrlTrueString

The URL name of the Site to create. If creating a new Site at "http://contoso.sharepoint.com/site1/newsite" then specify a value of "newsite".

WebTemplateFalseString

Specifies the Web template for the new Site. The template must already exist. If no template is specified, no template is applied and a template can be selected later.

TitleTrueString

Specifies the title of the new Site.

DescriptionFalseString

Describes the new Site. If no description is specified, the entry is left blank.

LanguageFalseInt32

Specifies the language template identifier for the new Site. If no language is specified, the Site is created with the same language that was specified when the product was installed.

The type must be a valid language identifier (LCID).

UniquePermissionsFalseSwitchParameter

Specifies that this Site is to be created with unique permissions.

Detailed Description

Creates a new child Site within an existing Site.

Copyright 2016 Falchion Consulting, LLC

> For more information on this cmdlet and others:

> http://blog.falchionconsulting.com/

> Use of this cmdlet is at your own risk.

> Gary Lapointe assumes no liability.

Examples

------------------EXAMPLE------------------

PS C:\> New-SPOWeb -ParentWeb "/" -Url "childsite" -WebTemplate "STS#0" -Title "Child Site" -UseSamePermissionsAsParentSite

This example creates a new child site with the URL name of childsite under the root Site of the current Site Collection.