Monthly Archives: February 2013

Extract all solutions from SharePoint 2010 using Powershell

Using the following Powershell command, you can extract & save all solutions in SharePoint to your local drive:

(Get-SPFarm).Solutions | ForEach-Object{$var = (Get-Location).Path + “\” + $_.Name; $_.SolutionFile.SaveAs($var)}

This will extract all solutions to the current folder.

Update: If needed, you can use this script to add all the solutions to SharePoint (run it from the directory where the solutions are located)

Get-ChildItem | ForEach-Object{Add-SPSolution -LiteralPath $_.Fullname}