0

I have a requirement to move all WSP's from Local Machine to QA server using PowerShell. Any links please.

1

First you should prepare the list of solutions that are deployed in your local machine. For that you can go into Central Admin - System Settings - Solutions

From here list down the WSP names.

Now you can use following PowerShell to download each WSP to your local folder

$farm = Get-SPFarm
$file = $farm.Solutions.Item("wspfilename.wsp").SolutionFile
$file.SaveAs("c:\install\wspfilename.wsp")

Now copy folder c:\install to QA and use below PowerShell to install those

Add-SPSolution c:\install\wspfilename.wsp

Now you can deploy the solution using

Install-SPSolution –Identity wspfilename.wsp –WebApplication http://QA 

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.