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]

Where:
  • 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.
Related Articles RSS Feed
How can I have my Sharepoint setup of your server?
Viewed 3109 times since Wed, May 2, 2012
What is the procedure for you to install my custom webpart feature?
Viewed 2963 times since Mon, May 14, 2012
How can I enable the "Anonymous Access" for my Sharepoint portal?
Viewed 3159 times since Wed, May 2, 2012
How can I change the password of my SharePoint user?
Viewed 2876 times since Wed, May 2, 2012
How can I get my WebParts installed on your system?
Viewed 3040 times since Wed, May 2, 2012
Do I have an access to all the Enterprise features on your SharePoint Server 2010 product?
Viewed 2797 times since Wed, May 2, 2012
Can I change my Sharepoint portal from root to other location, such as subdomain?
Viewed 3209 times since Wed, May 2, 2012
I cannot add any Sharepoint user. What should I do?
Viewed 2925 times since Wed, May 2, 2012
SharePoint 2010 Command Line to Remove or Uninstall a WebPart / Solution
Viewed 8140 times since Wed, Jun 20, 2012
How can I have my SharePoint site restored on your server?
Viewed 2928 times since Wed, May 2, 2012