SharePoint 2010 - Powershell Commands for Installing Solutions and Features

Add Solution
Add-SPSolution c:\solutions\myproject.wsp
Install-SPSolution –Identity myproject.wsp –WebApplication http://myprojectsite -GACDeployment
Note: You can also use the following parameters

  • –CASPolicies: If you are not deploying to the GAC
  • –AllWebApplications: if you want to deploy the solution to all web applications
  • –Force: to force the deployment of the solution
Update-SPSolution –Identity myproject.wsp –LiteralPath c:\solutions\myproject.wsp –GACDeployment
Uninstall-SPSolution –Identity myproject.wsp –WebApplication http://myprojectsite
Remove-SPSolution –Identity myproject.wsp
Enable-SPFeature –Identity MyFeature –url http://myprojectsite
Disable-SPFeature –Identity MyFeature –url http://myprojectsite


Comments

Popular posts from this blog

SQL SERVER – FIX : Error 3154: The backup set holds a backup of a database other than the existing database

SharePoint Close methods for SP Long Operations and Redirect Error Page

The model backing the context has changed since the database was created. Consider using Code First Migrations to update the database