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

Set-PnPHomePage

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

Sets the home page of the current web.

Syntax

Set-PnPHomePage -RootFolderRelativeUrl <String>
                [-Web <WebPipeBind>]

Parameters

ParameterTypeRequiredDescription
RootFolderRelativeUrlStringTrueThe root folder relative url of the homepage, e.g. 'sitepages/home.aspx'
WebWebPipeBindFalseThe web to apply the command to. Omit this parameter to use the current web.

Examples

Example 1

PS:> Set-PnPHomePage -RootFolderRelativeUrl SitePages/Home.aspx

Sets the home page to the home.aspx file which resides in the SitePages library

© 2017 Microsoft