Deactivate a Sandboxed Solution


Scenario/Problem: You need to deactivate an active sandboxed solution from a site collection.


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

The Uninstall-SPUserSolution cmdlet enables you to deactivate a specific sandboxed solution that was previously deployed. Use this in conjunction with the Get-SPUserSolution cmdlet (explained in a previous section), as shown in Listing 9.14.

Listing 9.14. Retracting a Sandboxed Solution from a Site Collection


$userSolution = Get-SPUserSolution
-Identity c0e31dec-294d-4f2d-9ae4-f2e637c766bd
Uninstall-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
18.188.91.44