sharepoint 2010 PS命令部署wsp包

来源:互联网 发布:淘宝上旗舰店和专卖店 编辑:程序博客网 时间:2024/05/16 09:50
 
1 用PS命令部署 带有webpart等wsp包
uninstall-spsolution -identity xxx.wsp -allwebapplications -confirm:$false
remove-spsolution -identity xxx.wsp -confirm:$false 
Add-SPSolution -LiteralPath E:\aa\xxx.wsp
Install-SPSolution -Identity xxx.wsp -WebApplication &url -gacdeployment
 
注:&url为要部署的网站集的URL
 
2 部署没有webpart的包到GAC
uninstall-spsolution -identity xx.wsp -confirm:$false
remove-spsolution -identity xx.wsp -confirm:$false 
Add-SPSolution -LiteralPath E:\aa\xx.wsp
Install-SPSolution -Identity xx.wsp -gacdeployment
 

 
原创粉丝点击