extract all the farm solutions from your SharePoint 2010 farm using PowerShell.
Of course it is!
Run the following PowerShell statement on a server in your SharePoint
2010 farm:
(Get-SPFarm).Solutions | ForEach-Object{
$var = (Get-Location).Path + "\" + $_.Name;
$_.SolutionFile.SaveAs($var)
}
Install Farm Solutions to SharePoint
# Add all WSP files in the current direction to SharePoint
Get-ChildItem | ForEach-Object{Add-SPSolution -LiteralPath $_.Fullname}
# Deploy all solutions in the farm
Get-SPSolution | ForEach-Object {If ($_.ContainsWebApplicationResource -eq $False)
{Install-SPSolution -Identity $_ -GACDeployment}
else {Install-SPSolution -Identity $_ -AllWebApplications -GACDeployment}}