Extract or exporting SharePoint 2010 farm solution using PowerShell
Run the below PowerShell to Extract all solutions from the SharePoint
farm.
(Get-SPFarm).Solutions
| ForEach-Object{$var = (Get-Location).Path + "\" + $_.Name;
$_.SolutionFile.SaveAs($var)}
Extract or Exporting SharePoint 2007 farm solutions:
I was used SharePoint farm solution
extractor to extract SharePoint 2007 farm solutions using the below command and
link
SharePointFarmSolutionExtractor.exe
-extractAll c:\SharePointSolutions