sharepoint 还原站点
Restore-SPSite -Identity http://myvm:8846 -Path E:\sp.bak -Force
sharepoint 备份站点
Backup-SPSite -Identity http://myvm:8846 -Path E:\sp.bak -Force
更新
Update-Spsolution -Identity ShellOA.wsp -LiteraPath C:\ShellOA\ShellOA\bin\Debug\ShellOA.wsp -GACDeployment --Force
sharepoint 2013 设置 显示详细错误信息
1. 在当前网站端口目录下的Web.config修改
例如80端口的站点路径为:C:\inetpub\wwwroot\wss\VirtualDirectories\80
(1)将<customErrors mode="On" /> 修改成 <customErrors mode="Off" />
(2)将<SafeMode MaxControls="200" CallStack="false" 修改成 <SafeMode MaxControls="200" CallStack="true"
(3)将<compilation batch="false" debug="false ">改为; <compilation batch="false" debug="true ">
2.在“Layouts位置(SharePoint发布页面)”的路径下的Web.config修改
具体位置:C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS
(1)将<customErrors mode="On" /> 修改成 <customErrors mode="Off" />