Tag - PowerShell

How to enable a list as a catalog in SharePoint 2013 with Powershell

Configure a list as a catalog with PowerShell to automate cross site publishing configuration in SharePoint 2013. PowerShell $siteUrl = "http://<<Server>>/sites/test" $webUrl = "/sites/test/subtest" $site = get-SPSite -Identity $siteUrl $web = Get-SPWeb -Site $site -Identity $webUrl $list = $web.Lists | where { $_.Title -eq 'Pages' } 12345 $siteUrl = "http://<<Server>>/sites/test"$webUrl = "/sites/test/subtest"$site = get-SPSite -Identity $siteUrl$web = Get-SPWeb -Site $site -Identity $webUrl$list = $web.Lists | where { $_.Title -eq 'Pages' } Adds important Indexed Properties to the List. Add IndexedRootFolderPropertyKeys to the lists PropertyBag PowerShell $list.IndexedRootFolderPropertyKeys.Add("PublishingCatalogSettings") $list.IndexedRootFolderPropertyKeys.Add("IsPublishingCatalog") 12 $list.IndexedRootFolderPropertyKeys.Add("PublishingCatalogSettings") $list.IndexedRootFolderPropertyKeys.Add("IsPublishingCatalog") Enables Anonymous Access to the [...]

Read more...