Title: Download All WSP's from Farm
Description: We are deploying the latest code and need to take up the all WSP's from Farm. In case code not work after deployement, we may require to re deploye the old WSP's
Powershell Script:
Description: We are deploying the latest code and need to take up the all WSP's from Farm. In case code not work after deployement, we may require to re deploye the old WSP's
Powershell Script:
- [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
- $farm = [Microsoft.SharePoint.Administration.SPFarm]::Local
- # Get the Present Path
- $path = Split-Path $MyInvocation.MyCommand.Path
- # Create the Folder name Solutions
- [Void]( ni "$path\Solutions" -type Directory -force )
- $farm.Solutions |% {
- Write-Host $_.Name
- $solution = $_.SolutionFile
- $solution.SaveAs("$path\solutions\$($solution.Name)")
- }
Out Put:
Open the Solutions folder and see all wsp's
ex:
Test.wsp
Customer.DataProcess.wsp