Monday, May 14, 2018

Set Welcome page using PnP PowerShell in SharePoint Online

When we provision a site using PnP template, somehow welcome page is not being set, to set the welcome page for a site use the below command after provisioning of the site is been completed.

Connect-PnPonline -Url $siteURL -Credentials $cred

Set-PnPHomePage -RootFolderRelativeUrl SitePages/Default.aspx

No comments: