PowerShell Script to Install

Developer
Mar 27, 2012 at 5:06 PM

Add, Install and Enable feature on Farm Server

Add-SPSolution ($packagesLocation + "SpugPt.DataConnManager.wsp")
Install-SPSolution "SpugPt.DataConnManager.wsp" -GACDeployment -Force -Confirm:$false -ea Stop
$SolutionSpugPt = Get-SPSolution | ? {($_.Name -eq "SpugPt.DataConnManager.wsp")}
$FeaturesSpugPt = Get-SPFeature | ? {$_.SolutionId -eq $SolutionSpugPt.SolutionId}
Enable-SPFeature -Identity $FeaturesSpugPt.Id -URL "http://sp2010:9999" -ea Stop