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]

Where:
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


Article ID: 144
Created On: Wed, Jun 20, 2012 at 10:55 PM
Last Updated On: Wed, Jun 20, 2012 at 11:06 PM
Authored by: ASPHostServer Administrator [asphostserver@gmail.com]

Online URL: http://faq.asphosthelpdesk.com/article.php?id=144