Extract and Download All Installed Solution Packages (WSP Files) in SharePoint
There were many solution packages installed in my current SharePoint environment. During a server replacement we noticed that the WSP file for a particular solution is missing in TFS! (Our version control repository!)
Thankfully, we have a solution to this issue using: http://archive.msdn.microsoft.com/SPSolutionExtractor. To extract and download all installed solution WSP files, Just execute:
SharePointFarmSolutionExtractor.exe -extractAll c:\SharePointSolutions
which will extract all WSP files from installed solutions!
Thankfully, we have a solution to this issue using: http://archive.msdn.microsoft.com/SPSolutionExtractor. To extract and download all installed solution WSP files, Just execute:
SharePointFarmSolutionExtractor.exe -extractAll c:\SharePointSolutions
which will extract all WSP files from installed solutions!
Download deployed solutions(WSP) from central admin with PowerShell in SharePoint 2010:
1
2
3
4
5
6
7
8
9
| $dirName = "c:\Solutions"foreach ($solution in Get-SPSolution){ $id = $Solution.SolutionID $title = $Solution.Name $filename = $Solution.SolutionFile.Name $solution.SolutionFile.SaveAs("$dirName\$filename")} |
If you want to download a particular solution, use this PowerShell Script:
1
2
3
| $farm = Get-SpFarm$SolutionFile = $farm.Solutions.Item("SolutionName.wsp").SolutionFile$SolutionFile.SaveAs("D:\SolutionFile.wsp") |
Download Installed Solution Packages in SharePoint 2007:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| [void][reflection.assembly]::LoadWithPartialName("Microsoft.SharePoint")#Get Farm object[Microsoft.SharePoint.Administration.SPFarm]$farm = [Microsoft.SharePoint.Administration.SPFarm]::get_Local()#Create a Directory for Solutionsif ( (Test-Path -path "c:\Solutions\") -ne $True){ New-Item c:\Solutions\ -type directory}$dirName = "c:\Solutions"foreach ($solution in $farm.Solutions){ Write-Host "Downloading solution $($Solution.Name)" $filename = $Solution.SolutionFile.Name $solution.SolutionFile.SaveAs("$dirName\$filename")} |
Read more: http://www.sharepointdiary.com/2011/10/extract-download-wsp-files-from-installed-solutions.html#ixzz3Ucksysk1

No comments:
Post a Comment