SharePoint 2010 - Powershell Commands for Installing Solutions and Features
Add Solution
Add-SPSolution c:\solutions\myproject.wspInstall-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
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
Post a Comment