SharePoint – add all wsps from a folder

foreach ($item in (Get-Childitem -path c:\temp\wsp)) { $location = “c:\temp\wsp\” + $item.Name add-spsolution -literalpath $location }

1