February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You need to add a solution to the farm using a script.
Solution: Use the Add-SPSolution cmdlet.
Using the Add-SPSolution cmdlet adds a solution package (.wsp) to the farm. All you need to provide the cmdlet is the actual location of the solution package, as shown in Listing 9.1.
Listing 9.1. Adding a Solution to the SharePoint Farm
Add-SPSolution "c:\newsolution.wsp"
The solution location is the -LiteralPath parameter, which is required. The path can be a local drive location or network location using a UNC string (\\servername\folder).
Read now
Unlock full access