February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You need to add a sandboxed solution to a specific site collection.
Solution: Use the Add-SPUserSolution cmdlet.
Using the Add-SPUserSolution cmdlet adds a solution package (.wsp) to a site collection. All you need to provide the cmdlet is the actual location of the sandboxed solution package and the site collection, as shown in Listing 9.10.
Listing 9.10. Adding a Sandboxed Solution to a Site Collection
Add-SPUserSolution -LiteralPath "c:\SBSolution.wsp" -Site"http://intranet.sp2013.com/sites/UserSC"
The sandboxed solution package 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