Sunday, June 24, 2012

Taking Backup of Deployed WSP in SharePoint 2010

To take the backup of the WSP in SharePoint 2010,
Run the following commands from Powershell where SharePoint 2010 is configured.

Add-PSSnapin Microsoft.SharePoint.PowerShell
$farm = Get-SPFarm
$file = $farm.Solutions.Item(“mysolution.wsp”).SolutionFile
$file.SaveAs(“C:\WSPs\mysolution.wsp”)

This saves the wsp to the desired location. The WSP can then be deployed like any other solution.

0 comments:

Post a Comment