Skip to content

Instantly share code, notes, and snippets.

@thinkb4code
Last active October 2, 2019 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinkb4code/d33e1c65628918af0dc465e4f32a7ba1 to your computer and use it in GitHub Desktop.
Save thinkb4code/d33e1c65628918af0dc465e4f32a7ba1 to your computer and use it in GitHub Desktop.
Update home page layout, SPO using Powershell
$cred = Get-Credential -Message "Login to SPO"
Connect-PnPOnline https://<tenant>.sharepoint.com/sites/<site_coll> -Credentials $cred
$page = Get-PnPClientSidePage -Identity "Home.aspx"
$page.LayoutType
Set-PnPClientSidePage -Identity "Home.aspx" -LayoutType Home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment