May 16, 2014

Retrive all deployed solutions / .WSP files from the Farm

Hi All,

please do find below Power Shell script which will retrieve all deployed solutions to the local drive:

$farm = [Microsoft.SharePoint.Administration.SPFarm]::Local 
$farm.Solutions | % {  
$filename = ($pwd.ToString() + "\" + $_.SolutionFile.Name);  
write-host ("Saving" + $filename);  

save this above lines of code as a .ps1 file and execute [Won't support if OS is Windows server 2003]
tested in SharePoint 2007 environment [Windows server 2008 r2], you can try in 2010 also.


No comments:

Post a Comment