Extracting Solution Packages (WSPs) from SharePoint using PowerShell
August 10, 2012 Leave a comment
I just stumbled across this link from Kirk Evans – http://blogs.msdn.com/b/kaevans/archive/2011/12/05/extract-a-wsp-solution-from-sharepoint-2010.aspx
Basically, using 3 lines of PowerShell (which can be turned really into one if needed), to extract a SharePoint Solution Package (WSP) from the Farm Solutions collection.
From his post:
$farm = Get-SPFarm
$file = $farm.Solutions.Item("extendeddiagnosticproviders.wsp").SolutionFile
As awesome as it is easy.