Install SharePoint solutions to All Web Applications
Install-SPSolution -Identity <SolutionName> -AllWebApplications -GACDeployment
GACDeployment is the parameter that enables SharePoint Server 2010 to deploy the assemblies in the global assembly cache.
Install SharePoint solutions to Specific Web Application
Install-SPSolution <SolutionName> –WebApplication <site url>
Deploy SharePoint solutions
Add-SPSolution E:\YourSharePointSolution.wsp
For sandboxed solutions you should use Add-SPUserSolution instead of the Add-SPSolution
To retract and remove a solution, use the following commands:
Uninstall-SPSolution –Identity SharePointSolution.wsp –WebApplication http://webapp
Remove-SPSolution–Identity SharePointSolution.wsp
Install-SPSolution -Identity <SolutionName> -AllWebApplications -GACDeployment
GACDeployment is the parameter that enables SharePoint Server 2010 to deploy the assemblies in the global assembly cache.
Install SharePoint solutions to Specific Web Application
Install-SPSolution <SolutionName> –WebApplication <site url>
Deploy SharePoint solutions
Add-SPSolution E:\YourSharePointSolution.wsp
For sandboxed solutions you should use Add-SPUserSolution instead of the Add-SPSolution
To retract and remove a solution, use the following commands:
Uninstall-SPSolution –Identity SharePointSolution.wsp –WebApplication http://webapp
Remove-SPSolution–Identity SharePointSolution.wsp
No comments:
Post a Comment