Created
January 1, 2016 00:53
-
-
Save sweeneyrobb/3915df14843220ecf737 to your computer and use it in GitHub Desktop.
This script will export a WSP from the Configuration Database. Handy if you do not have access to the binaries during a migration.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$wspFile = "solution.wsp" | |
$outDir = "c:\temp" | |
$farm = Get-SPFarm | |
$wsp = $farm.Solutions.Item($wspFile).SolutionFile | |
$outFile = Join-Path -Path $outDir -ChildPath $wspFile | |
$wsp.SaveAs($outFile) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment