Activate a Sandboxed Solution


Scenario/Problem: You need to activate a sandboxed solution that was added to the site collection.


Solution: Use the Install-SPUserSolution cmdlet with a sandboxed solution variable and site collection reference.

The Install-SPUserSolution cmdlet enables you to deploy a specific sandboxed solution installed on the farm to a specified web application. Use this in conjunction with the Get-SPUserSolution cmdlet (explained in a previous section), as shown in Listing 9.13.

Listing 9.13. Sample Configuration Script for Deploying a Sandboxed Solution


$userSolution = Get-SPUserSolution
-Identity c0e31dec-294d-4f2d-9ae4-f2e637c766bd
Install-SPUserSolution $userSolution -Site "http://intranet.sp2013.com/sites/UserSC"


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.174.174