Programatically download WSP from SharePoint 2010 Central Admin
- Using Console application to Extract WSP
- Using Power Shell Script
Using Console Application to Extract WSP
SPSolutionCollection solutions = SPFarm.Local.Solutions;Using Power Shell
foreach (SPSolution solution in solutions)
{
SPPersistedFile wspFile = solution.SolutionFile;
wspFile.SaveAs("c:\\wsp\\" + solution.Name);
}
$farm = Get-SPFarm
$file = $farm.Solutions.Item("custom.wsp").SolutionFile
$file.SaveAs("c:\temp\ custom.wsp")
0 comments:
Post a Comment