Share via


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
}