Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 652 Bytes

SetPnPHomePage.md

File metadata and controls

21 lines (18 loc) · 652 Bytes

#Set-PnPHomePage Sets the home page of the current web. ##Syntax

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

##Parameters

Parameter Type Required Description
RootFolderRelativeUrl String True The root folder relative url of the homepage, e.g. 'sitepages/home.aspx'
Web WebPipeBind False The 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