WSP backup through power shell script
Open Sharepoint PowerShell program using Run as Administrator.
Execute the following set of commands
$farm = Get-SPFarm
$file = $farm.Solutions.Item("Name of WSP.wsp").SolutionFile
$file.SaveAs("E:\SharePointSolutionBackupfolder\Name of WSP.wsp")
$file = $farm.Solutions.Item("Name of WSP.wsp").SolutionFile
$file.SaveAs("E:\SharePointSolutionBackupfolder\Name of WSP.wsp")
Once the above command executed successfully the WSP file will be available in the mentioned folder path.
No comments:
Post a Comment