Tuesday, 12 July 2016

PowerShell Command for getting the backup of WSP


PowerShell Command for getting the backup of WSP 

$FolderPath = "z:\Solutions\12July2016"
foreach ($solution in Get-SPSolution)
{
   $id = $Solution.SolutionID
   $title = $Solution.Name
   $filename = $Solution.SolutionFile.Name
   $solution.SolutionFile.SaveAs("$FolderPath\$filename")
}  

No comments:

Post a Comment