Home » Categories » Multiple Categories

SharePoint 2010 Command Line to Deploy or Install a WebPart / Solution

IMPORTANT NOTE: SharePoint 2010 Server service. If you register with any of our shared SharePoint 2010 plan service, you are not able to use this facility. This is primarily because of the fact that you do not have enough privilege to access the SharePoint 2010 server directly. For webpart or solution deployment, you need to raise a ticket via our Help Desk System to our Support Team


In order to deploy a webpart solution to a SharePoint 2010 Server, you always need to make sure that SharePoint Timer Service is enabled. Additionally, you must also make sure that the previous same webpart or solution has been retracted or removed from the GAC. To remove the previous solution, please refer to this article.


1. Please go to Start -> Program -> Microsoft SharePoint 2010 Products > SharePoint 2010 Management Shell.

2. Add solution to the SharePoint Solutions Store. In this example, we will use the Bamboo Calendar Plus solution.

Add-SPSolution -LiteralPath <SolutionPath>

3. Deploy solution

Install-SPSolution -Identity <SolutionName> -WebApplication <URLName> [-GACDeployment] [-CASPolicies]

  • GACDeployment is the parameter that enables SharePoint 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.
These two parameters are required in order to deploy this specific solution

4. You can check whether your solution has installed successfully by using the following command.

Get-SPSolution <SolutionName>

Additional Note:

- The physical path of SharePoint 2010 is located atC:\Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN
Attachments Attachments
There are no attachments for this article.