Set-SPOWebTemplate

Synopsis

Apply web template to a web.

Syntax

Set-SPOWebTemplate -Web <Web> -TemplateId <String> [<CommonParameters>]

Description

Will not work on a site which already has a web template set.

Parameters

-Web <Web>

Required? True
Position? named
Default value  
Accept pipeline input? true (ByValue)
Accept wildcard characters? False

-TemplateId <String>

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

Outputs

Notes

Examples

Apply web template to web

PS C:\> Set-SPOWebTemplate -Web $ctx.Web -TemplateId STS#0

Sets the web template on a web to STS#0. Will not work on a site which already has a web template set.

Related links

Last edited Aug 5, 2014 at 1:07 AM by provokesolutions, version 2

Comments

No comments yet.