Exporting a WSP

posted in: PowerShell 0

Imagine you have a farm with a solution deployed to it; but, have lost the raw solution package and you need to work on the solution.  Or, someone deployed a solution to the farm and you need to inspect it.  Here is a script I found that works fantastic for going into the farm and getting all solutions, exporting the wsp’s to a file so that they can then be inspected, re-deployed, or deployed, somewhere else, etc.




Here’s a script to get just one solution: