Deploy SharePoint 2010 solution(.wsp) package using Powershell

InfoPath alternatives for form designing SharePoint

In this article we will discuss how to deploy the SharePoint 2010 solution package (.wsp) using PowerShell. Also you can check out my previous posts on:

– Hide Ribbon From Anonymous Users in SharePoint 2010

– FAST search in SharePoint 2010

– Limitations of Sandboxed Solutions in SharePoint 2010

Follow below steps:

Step1: Start Power Shell command prompt
Start->All Programs->MicrosoftSharepoint2010Products->open Sharepoint2010Managementshell

Type the command

Step2: Add Solution Package
Add-SPSolution “C:\SharePoint2010Solution.wsp”

Step3: Install Solution Package
Install-SPSolution –Identity SharePoint2010Solution.wsp –WebApplication http://myserver –GACDeployment

If you are using Sandbox Solution,

Step4: Install Solution Package
Install-SPUserSolution –Identity SharePoint2010Solution.wsp –WebApplication http://myserver –GACDeployment

For Updating the Sharepoint 2010 Solution type the following commands

Step5: Update Solution Package
Update-SPSolution –Identity SharePoint2010Solution.wsp –LiteralPath “C:\SharePoint2010Solution.wsp” –GacDeployment

For retract and remove a solution, type the following commands:

Step 6: Uninstall Solution Package
Uninstall-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://myserver

Step7: Remove Solution Package
Remove-SPSolution–Identity MySharePointSolution.wsp

Similar SharePoint 2013 Tutorials

Leave a Reply