The following powershell file extracts all WSPs uploaded into WSS3.0 solution store and saves locally on a drive:
param([string] $exportPath)
[System.Reflection.Assembly]::Load('Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c') | Out-Null
[System.Reflection.Assembly]::Load("Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c") | Out-Null 


$dir = $exportPath.TrimEnd('\') + '\'

$solutions = [Microsoft.SharePoint.Administration.SPFarm]::Local.Solutions
$solutions | foreach-object { $path = $dir + $_.SolutionFile.Name ; write-host $path; $_.SolutionFile.SaveAs($path) }

Last edited Dec 9, 2011 at 5:15 AM by epranav, version 1

Comments

No comments yet.