Skip to content
December 5, 2010 / red1s

Quick Tip – Deploying Solutions to SharePoint 2010 (Using Central Admin / SharePoint PowerShell)


The process to deploy solutions (previously named solution templates .stp’s )to 2010 has changed from the latest version quite a bit from the way things were done in the previous version; specifically from where to access the solution area and what it is defined within it etc

In the following procedure I’ll briefly go though how to deploy an imported solution to a site in the farm by using either the Central Administration Web site or Windows PowerShell.

To deploy a solution by using Central Administration

  1. On the Central Administration Home page, click System Settings.

clip_image001

  1. In the Farm Management section, click Manage farm solutions.

clip_image002

  1. On the Solution Management page, click the solution that you want to deploy.
  1. clip_image003
  1. On the Solution Properties page, click Deploy Solution.
  2. clip_image004
  1. On the Deploy Solution page, in the Deploy When section, select one of the following:

clip_image005

  1. In the Deploy To? section, in the A specific web application list, click either All web applications or select a specific Web application.
  2. Click OK.

clip_image006

 

Updated: (I’ve also been using PowerShell to do a quicker deployment of my solutions to which the following steps can be followed to complete this in a quicker manner)

Using PowerShell this can also be done by following the steps located here or

  1. Verify that you meet the following minimum requirements:

See Add-SPShellAdmin.

  1. On the Start menu, click All Programs.
  2. Click Microsoft SharePoint 2010 Products.
  1. Click SharePoint 2010 Management Shell.
  1. At the Windows PowerShell command prompt, type the following command:

Install-SPSolution -Identity <SolutionName> -WebApplication <URLname>

  1. Where:
    • <SolutionName> is the name of the solution.
    • <URLname> is the URL of the Web application to which you want to deploy the imported solution.
      By default, the solution is immediately deployed. You can also schedule the deployment by using the time parameter. For more information, see Install-SPSolution.

To deploy a solution package to all Web applications by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin.
  2. On the Start menu, 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:

Install-SPSolution -Identity <SolutionName> -AllWebApplications -time <TimeToDeploy> -GACDeployment –CASPolicies

Where:

  • GACDeployment is the parameter that enables SharePoint Server 2010 to deploy the assemblies in the global assembly cache.
  • CASPolicies enables the creation of a custom code access security (CAS) policy file and the activation of it in the Web.config file of the targeted site collection.

 

Good luck with the deployment of your solutions!

Digg This
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: