Export WSP solution packages

When WSP packages are added to a SharePoint farm they are stored in the config database. This is done to ensure new servers added to the farm can be synchronized with the specific farm configuration including WSP solution package deployment.

Because solution packages are stored in the config database, it’s possible to download/export the WSP package with PowerShell.

Get-SPSolution | ForEach-Object { $_.SolutionFile.SaveAs($_.SolutionFile.Name) }

The WSP packages are stored in the current directory.