please do find below Power Shell script which will retrieve all deployed solutions to the local drive:
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$farm = [Microsoft.SharePoint.Administration.SPFarm]::Local
$farm.Solutions | % {
$filename = ($pwd.ToString() + "\" + $_.SolutionFile.Name);
write-host ("Saving" + $filename);
$_.SolutionFile.SaveAs($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.
Thanks,
JK
No comments:
Post a Comment