Get a Specific Sandboxed Solution
Scenario/Problem: You need to obtain a specific solution reference.
Solution: Use the Get-SPUserSolution
cmdlet to assign a variable the results using the -Identity
parameter.
Providing the identity of the sandboxed solution with the Get-SPUserSolution
cmdlet retrieves a specific sandboxed solution. Use this to assign the results to an object for use in other cmdlets, as shown in Listing 9.12.
$userSolution = Get-SPUserSolution-Identity c0e31dec-294d-4f2d-9ae4-f2e637c766bd-site "http://intranet.sp2013.com/sites/UserSC"
Tip
Instead of using the solution GUID, you may use the name of the solution as listed in the output when issuing Get-SPUserSolution ...
Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.