In our recent project we were facing an issue with page layouts, so we need to check our WSP solution on server. In the Central Administration screen, a link is not available for you to download the WSP solution.
We can extract the WSP from farm with custom code but I have used below 3 lines of PowerShell code to achieve my goal
$spfarm = Get-SPFarm
$wspfile = $spfarm.Solutions.Item("wspfilename.wsp").SolutionFile
$wspfile.SaveAs("d:\extract\wspfilename.wsp")
Make sure, you would be a member of Farm Administrators group and have permission to the configuration database.
We can extract the WSP from farm with custom code but I have used below 3 lines of PowerShell code to achieve my goal
$spfarm = Get-SPFarm
$wspfile = $spfarm.Solutions.Item("wspfilename.wsp").SolutionFile
$wspfile.SaveAs("d:\extract\wspfilename.wsp")
Make sure, you would be a member of Farm Administrators group and have permission to the configuration database.
Comments
Post a Comment