Save a publishing site collection as template in SharePoint 2013.


In SharePoint 2013, save as a template for publishing site is not available.While accessing directly it may prompt for Access Denied.

In order to enable use the following power shell script.


# Get a reference to the target site

$web = Get-SPWeb http://Intranet.sites.com/Publishing

# Update the property bage value and set it  to the string value "true"

$web.AllProperties["SaveSiteAsTemplateEnabled"] = "true"

# Commit the property change to server

$web.Update() 

 Now you can access the save site as template through http://sitename/_layouts/savetmpl.aspx directly.

Comments

Popular posts from this blog

Sharepoint 2013 Script Editor web part CData for custom page layout using visual studio.

List attachment link in SharePoint 2013 search.

Bulk update and delete using SPservice in SharePoint