Friday, August 30, 2013

PowerShell vs stsadm in SharePoint 2010 - Solution Deployment

  • Add solution
  • stsadm –o addsolution –name SharePointProject2.wsp
  • Add-SPSolution c:\code\SharePointProject2\bin\debug\SharePointProject2.wsp

  • Deploy Solution
  • stsadm –o deploysolution –name SharePointProject2.wsp –url http://moss-server –allowCasPolicies –immediate
  • Install-SPSolution –Identity SharePointProject2.wsp –WebApplication http://sp2010 -GACDeployment


  • Upgrade Solution
  • stsadm –o upgradesolution –name SharePointProject2.wsp –filename SharePointProject2.wsp –immediate –allowCasPolicies
  • Update-SPSolution –Identity SharePointProject2.wsp –LiteralPath c:\code\SharePointProject2\bin\debug\SharePointProject2.wspGACDeployment

  • Remove Solution.
  • Uninstall-SPSolution –Identity SharePointProject2.wsp –WebApplication http://sp2010
  • Remove-SPSolution –Identity SharePointProject2.wsp


Source:
http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2009/12/02/adding-and-deploying-solutions-with-powershell-in-sharepoint-2010.aspx

No comments:

Post a Comment