When executing Install-SPUserSolution powershell command the following error is shown:
Install-SPUserSolution : Sandboxed code execution request failed. At line:1 char:23 + Install-SPUserSolution <<<< -Identity some_package.wsp -Site
http://localhost/sites/test+ CategoryInfo : InvalidData: (Microsoft.Share...allUserSolution: SPCmdletInstallUserSolution) [Install-SPUserSolution], SPUserCodeExecu...F ailedException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletInstallU serSolution
When I try to activate the user solution from the SharePoint interface everything works fine. So this doesn't work only from PowerShell. I tried to run user code service under different account (admin account) but this didn't help. Currently this service is running under Network Service account.
Also when I run Add-SPUserSolution or Uninstall-SPUserSolution they work just fine. I was able to reproduce this issue on at least two servers. Please advice.