在SharePoint Management Shell窗口键入:
$docSize = 50000000 $webservice = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $webservice.MaxTemplateDocumentSize = $docSize $webservice.Update()
如果直接打开了PowerShell窗体,则需要先加载如下模块:
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration")
根据如下文章,模板文档最大允许500M:
【附】用stsadm修改的命令如下:
cd "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN" stsadm -o setproperty -pn max-template-document-size -pv 524288000
浙公网安备 33010602011771号