Official Site

Konstantinos Boutsioulis

Microsoft Most Valuable Professional M365 Apps & Services

Microsoft Most Valuable Professional Business Applications

Consultant & Sr Cloud Solution Architect Modern Wokrplace

Free Material

Find hereMore than 150 Articles about Microsoft Technologies on Modern Workplace

Create SharePoint List with custom columns Using PowerShell

22 January 2024

In today's post I will show you how easy it is to change the layout of the home page of a site in SharePoint. The change we will make will be done with PnP and SharePoint Online Management Shell. We will change the layout and make it article type like you would see the hompage if you created a page inside the site pages and it was article type Like every time we will have to have administrator permissions to run SharePoint Online Management Shell. We run the code below in PowerShell and we have

Code In PnP

#Declare variable of site url

$site = "https://mytenant.sharepoint.com/sites/Demo"

#Connect with SharePoint Online

Connect-PnPOnline -Url $site -Interactiv

# Set site page layout to remove title area

Set-PnPPage -Identity $page -LayoutType Article

#SharePoint #technology #microsoft #PowerShell #PnP #digitaltransformation #cloud #mvpbuzz #m365