February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You need to deploy a solution that was added to the farm to a web application.
Solution: Use the Install-SPSolution cmdlet with a solution variable.
The Install-SPSolution cmdlet enables you to deploy a specific solution installed on the farm to a specified web application. Use this in conjunction with the Get-SPSolution cmdlet (explained in a previous section), as shown in Listing 9.4.
Listing 9.4. Sample Configuration Script for Deploying a Solution
$solution = Get-SPSolution-Identity c0e31dec-294d-4f2d-9ae4-f2e637c766bdInstall-SPSolution $solution -WebApplication "SharePoint - 80"-Force -GACDeployment
Note
You may only deploy a solution to a web application if the solution contains ...
Read now
Unlock full access