Extract WSP Solutions from SharePoint using PowerShell

I used this blog (http://www.sharepointbleached.com/2011/03/extract-wsp-solutions-from-sharepoint.html) to get the script.

The following simple PowerShell script will iterate through the solution store and write the WSP packages to file:
Start-Transcript “c:\wsp\transcript.txt”
$solutions = [Microsoft.SharePoint.Administration.SPFarm]::Local.Solutions;
foreach ($solution in $solutions) {
   $solution.SolutionFile.SaveAs(“c:\wsp\” + $solution.Name);




About Pankaj

I am a Developer and my linked profile is https://www.linkedin.com/in/pankajsurti/
This entry was posted in MOSS 2007, SharePoint, SharePoint 2010, Technical Stuff. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s