You can use below mention powershell command to download all WSPs from Central Admin in SharePoint 2010 / 2013 / 2016 and 2019.
========================================================================
$pathName = "C:\WAAPH\"
foreach ($solution in Get-SPSolution)
{
$solid = $Solution.SolutionID
$title = $Solution.Name
$filename = $Solution.SolutionFile.Name
$solution.SolutionFile.SaveAs("$pathName\$filename")
}
========================================================================
$pathName = "C:\WAAPH\"
foreach ($solution in Get-SPSolution)
{
$solid = $Solution.SolutionID
$title = $Solution.Name
$filename = $Solution.SolutionFile.Name
$solution.SolutionFile.SaveAs("$pathName\$filename")
}
========================================================================
No comments:
Post a Comment