Thursday, October 15, 2015

How to download deployed solution in SharePoint

Hi,

Usually, we develop solution files and give it to admins for deployment.
Admin guys deploy the solution by adding it to central admin. 

If suppose, Admin wants to move SharePoint from one server to another server then they have to communicate to development team then they will collect all the solution files. Once they got all the solution files then only they can again deploy all the solution in the new server. By that time, developers may miss some solution or they take some time to collect all the solutions. To remove this extra step, admins can also collect all the solutions which are deployed by following the below steps.


1.       Create new folder in C drive and name it as “solutions”.
2.       Now open SharePoint 2013 management shell as administrator and run the below script

$FolderPath = "c:\FormSolutions" 
foreach ($solution in Get-SPSolution) 
   $id = $Solution.SolutionID 
   $title = $Solution.Name 
   $filename = $Solution.SolutionFile.Name 
   $solution.SolutionFile.SaveAs("$FolderPath\$filename"
}

Now all sharepoint solutions deployed from central admin are available at C:\FormSolutions folder.

Enjoy J

No comments:

Post a Comment