Archive

Archive for febbraio 2015

Sharepoint – Extract Farm Solutions

Powershell script to extract Farm Solutions (.wsp files)

#Add-PSSnapin Microsoft.Sharepoint.Powershell
#
$Folder = “C:\TEMP\mySolutions\”
Set-Location $Folder
#
write-host “download FARM Solutions”
$Farm = Get-SPFarm
foreach(SSol in Get-SPSolution) {
write-host “download Solution:” $Sol.name
$file = $Farm.Solutions.Item($Sol.name).SolutionFile
$file.SaveAs($Folder+$Sol.name)
}
Get-SPSolution > $Folder’ExtractSolution_out.txt’

 

Categorie:SharePoint