Build on this blog post on how to get sandboxed on the farm, I also need to be able to install/uninstall sandboxed solution farm wide. There for I made they have two functions to wrap the install and Uninstall-SPUserSolution SPUserSolution.
The core code is when a call (a version 2) of the Get-UserSolution filter to get the deactiveated solutions and then call the build-in cmdlet Install-SPUserSolution
$gc = Start-SPAssignment Get-UserSolution -SiteCollection $SiteCollection -Filter $Filter -Verboses:$Verboses | ` Install-SPUserSolution -Site $SiteCollection -AssignmentCollection $gc Stop-SPAssignment $gc
The code:
No comments:
Post a Comment