sharepoint部署文件

使用SharePoint PowerShell 部署WSP

Uninstall-SPSolution Cbw_SinopecPortal_WebPart.wsp -AllWebApplications

Remove-SPSolution Bossini.TWCPWF.Addin.wsp

Add-SPSolution D:\TWCPWF\Bossini.TWCPWF.Addin.wsp

Install-SPSolution -Identity Bossini.TWCPWF.Addin.wsp -GACDeployment -force -AllWebApplications

Install-SPSolution -Identity Bossini.TWCPWF.Addin.wsp -GACDeployment -force -WebApplication http://moss64test

 

如果是要更新一个文件的则可以直接写上下面语句

Update-SPSolution Bossini.TWCPWF.Addin.wsp -LiteralPath “ C:\Users\Administrator\Desktop\Bossini.TWCPWF.Addin.wsp” -GACDeployment

posted @ 2012-09-06 10:48  double_ed  Views(137)  Comments(0Edit  收藏  举报