$spWeb = Get-SPWeb -Identity "http://server/site" $pubWeb =[Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($spWeb) $pl = $pubWeb.GetAvailablePageLayouts()
+ $pl = $pubWeb.GetAvailablePageLayouts <<<< () + CategoryInfo : NotSpecified: (: ) [ ], MethodInvocationException + FullyQualifiedErrorId : DotNetMethodException
GetAvailablePageLayouts()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)