When working with solutions in SharePoint 2010, it can be hard to track the location of your latest WSP’s. To resolve this, I created a script that will export all currently deployed solutions to your local hard drive.
Part 1 – Export all deployed solutions from the SharePoint 2010 environment
The following script can be copied into notepad and saved as a .ps1 file. Just execute the script to export the solutions. When you run the script, it will ask for an export location. This folder does not have to exist on your harddrive.
#Export all SharePoint 2010 solutions
#This is the path that will be used to import/export the solutions.
The directory C:\MySolutions now contains 11 solutions. In a live environment, you would now copy the folder with all the solutions to another SharePoint environment.
In part 2 I will share a script that will import these solutions into another SharePoint 2010 farm.