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

How to remove app from SharePoint 2013/2016

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