magritton
8/1/2014 - 7:05 PM

This is a script increases the template size from the default of 50mb to 500 MBs for sharePoint

This is a script increases the template size from the default of 50mb to 500 MBs for sharePoint

Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue
$webservice = [Microsoft.SharePoint.Administration.SPWebService]::ContentService

#Get the current Maximum Size
$webservice.MaxTemplateDocumentSize 

#Set New Limit and update
$webservice.MaxTemplateDocumentSize = 524288000 #500 MB
$webservice.Update()