您的位置:首页 > 运维架构 > Shell

PowerShell 方式部署Sharepoint Solution

2013-08-27 14:08 387 查看
覆盖

Uninstall-SPSolution –Identity Caesarstone.GlobalSite.WebSite.wsp –WebApplication http://myserver-sp1:2010/ Remove-SPSolution –Identity Caesarstone.GlobalSite.WebSite.wsp -force
Add-SPSolution C:\Caesarstone.GlobalSite.WebSite.wsp
Install-SPSolution -Identity Caesarstone.GlobalSite.WebSite.wsp -AllWebApplications -GACDeployment
Enable-SPFeature CustomerSiteSearch_feature1 -url http://[ServerName]/ –force

可能会用到卸载Feature:Uninstall-SPFeature 6a4ea254-2eb4-48c5-a996-62f71ac19828 -force

第一次发布

Add-SPSolution c:\bin\CustomerSiteSearch.wsp

Install-SPSolution -Identity CustomerSiteSearch.wsp -AllWebApplications -GACDeployment

Enable-SPFeature CustomerSiteSearch_feature1 -url /]http://[ServerName]/ –force
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: