码迷,mamicode.com
首页 > 系统相关 > 详细

SharePoint PowerShell命令系列 (3) 操作WSP解决方案包的相关命令

时间:2015-08-26 15:38:37      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:

Add-SPSolution

例子

Add-SPSolution -LiteralPath c:\solution.wsp

注意该命令只是向SharePoint服务器场添加解决方案包, 并不会做其他操作.

Install-SPSolution

例子

Install-SPSolution -Identity solution.wsp -GACDeployment

参数

  • Force: 强制部署新的解决方案包.
  • AllWebApplications: 向服务器场中所有Web应用程序部署新的解决方案包.
  • FullTrustBinDeployment: 允许完全信任Bin部署.
  • GACDeployment: 部署到全局程序集缓存.
  • Time: 在指定的时间部署解决方案包, 默认是立刻部署.
  • WebApplication: 为指定的Web应用程序部署新的解决方案包.

Update-SPSolution

例子

Update-SPSolution -Identity solution.wsp -LiteralPath c:\solutionv2.wsp -GACDeployment

参数

  • Force: 强制更新解决方案包.
  • GACDeployment: 部署到全局程序集缓存.
  • Time: 在指定的时间更新解决方案包, 默认是立刻部署.

Uninstall-SPSolution

例子

Uninstall-SPSolution -Identity solution.wsp

参数

  • AllWebApplications: 从服务器场中所有Web应用程序回收卸载解决方案包.
  • WebApplication: 从指定的Web应用程序回收卸载解决方案包.
  • Time: 在指定的时间回收卸载解决方案包, 默认是立刻回收卸载.

注意该命令只是收回卸载已部署的解决方案包, 并不会做其他操作.

Remove-SPSolution

例子

Remove-SPSolution -Identity solution.wsp

enjoy SharePoint

SharePoint PowerShell命令系列 (3) 操作WSP解决方案包的相关命令

标签:

原文地址:http://www.cnblogs.com/jingnansu/p/4760393.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!