Created
March 29, 2021 21:09
-
-
Save expiscornovus/6807d20867a424c98d21facf0a6b218a to your computer and use it in GitHub Desktop.
Get the available page layouts of a web in SharePoint 2013 via PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
[string]$weburl | |
) | |
$spweb = Get-SPWeb -Identity $weburl | |
$pubweb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($spweb) | |
$pagelayouts = $pubweb.GetAvailablePageLayouts() | Select Title,Name | |
$pagelayouts | |
$spweb.Dispose() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment