SharePoint 命令行

网站集备份:
Backup-SPSite http://sp2013 -Path C:\sp.bak
网站集还原:
Restore-SPSite http://sp2013/sites/dyzx -Path E:\sp.bak -Force -DatabaseServer SP2013 -DatabaseName wss_content
更新Wsp包:
Update-SPSolution –Identity DigitalCampusLists.wsp –LiteralPath C:\Users\spadmin\Deskp\DigitalCampusLists.wsp –GACDeployment
查找解决方案帮助文档:
get-help install-spsolution
添加解决方案:
Add-SPSolution -LiteralPath C:\sp.wsp
覆盖部署解决方案:
Install-SPSolution -Identity sp.wsp -WebApplication http://sp2013  -GACDeployment -Force
更新解决方案:
Update-SPSolution –Identity sp.wsp –LiteralPath C:\sp.wsp –GACDeployment -Force
导出网站:
Export-spweb http://sp2013/spsite -Path C:\sp.cmp
导入网站:
Import-SPWeb http://sp2013/spsite -Path C:\sp.cmp
posted @ 2018-10-19 18:44  张纪轩  阅读(201)  评论(0编辑  收藏  举报
有事您Q我