Share via

Enable sandboxed solutions on the farm (SharePoint Server 2010)


Applies to: SharePoint Foundation 2010, SharePoint Server 2010

The Sandbox Solution framework provides a mechanism for executing user-provided code outside of the IIS worker process. The Sandbox Solution framework should not be used as a mechanism for enforcing security boundaries when executing user code. Sandbox Solutions are not supported as a security boundary with user code, especially code of unknown origin. We advise against executing Sandbox Solutions of unknown origins.

A sandbox is a restricted execution environment that enables programs to access only certain resources and keeps problems that occur in the sandbox from affecting the rest of the server environment. Solutions that you deploy into a sandbox, which are known as sandboxed solutions, cannot use certain computer and network resources and cannot access content outside the site collection they are deployed in. Because sandboxed solutions cannot affect the whole server farm, they do not have to be deployed by a farm administrator. If sandboxed solutions have been enabled on at least one server in the farm, a site collection administrator can deploy solutions to a run in a sandbox on any server in the farm.

By default, sandboxed solutions are disabled. Enable sandboxed solutions on every application server on which you want to run sandboxed solutions.

For more information about sandboxed solutions, see Sandboxed solutions overview (SharePoint Server 2010).

Enable sandboxed solutions

Use the following procedure on each application server in your farm on which you want to enable sandboxed solutions.

To enable sandboxed solutions by using Central Administration

  1. Verify that you have the following administrative credentials:

    • You must be a member of the Farm Administrators group on the computer that is running the SharePoint Central Administration Web site.
  2. On the home page of the Central Administration Web site, in the System Settings section, click Manage services on server.

  3. On the Services on Server page, in the Server box, select the server on which you want to enable sandboxed solutions.

  4. In the Microsoft SharePoint Foundation Sandboxed Code Service row, in the Action column, click Start.

  5. Repeat steps 3 and 4 for each server on which you want to enable sandboxed solutions.

To enable sandboxed solutions by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin.

  2. Click Start, and then click All Programs.

  3. Click Microsoft SharePoint 2010 Products.

  4. Click SharePoint 2010 Management Shell.

  5. At the Windows PowerShell command prompt, type the following command:

    Start-Service -Name SPUserCodeV4
  6. Repeat this procedure on every server on which you want to enable sandboxed solutions

See Also


Sandboxed solutions overview (SharePoint Server 2010)
Plan sandboxed solutions (SharePoint Server 2010)
Configure load balancing for sandboxed solutions (SharePoint Server 2010)
Block or unblock a sandboxed solution (SharePoint Server 2010)
Configure sandboxed solutions service tiers (SharePoint Server 2010)
Configure resource points for sandboxed solutions (SharePoint Server 2010)