
190
CHAPTER 7 AdministrAting shArePoint 2010with Powershell
To make sure the solution is installed, you may use Get-SPSolution to list out all solutions within
the farm, as shown in Figure7-10.
FIGURE710: Displaying solutions on the farm
After adding a solution to the farm, you need to deploy the solution to the intended web
application(s). Use the
Install-SPSolution cmdlet.
Install-SPSolution [-Identity] <SPSolutionPipeBind>
[-AllWebApplications <SwitchParameter>]
[-AssignmentCollection <SPAssignmentCollection>]
[-CASPolicies <SwitchParameter>]
[-Confirm [<SwitchParameter>]]
[-Force <SwitchParameter>]
[-GACDeployment <SwitchParameter>]
[-Language <UInt32>]
[-Local <SwitchParameter>]
[-Time <String>]
[-WebApplication <SPWebApplicationPipeBind>]
[-WhatIf [<SwitchParameter>]]
[<CommonParameters>]
You may deploy the solution to all available web applications by using the -AllWebApplications
switch parameter, or you may specify a specific web application using the
-WebApplication param-
eter. If the solution needs to deploy assemblies into the GAC, you must use the
-GACDeployment
parameter. When custom permission sets are provided, the
-CASPolicies parameter must be used.
105054c07.indd 190 1/10/12 3:34 PM