add-spsolution Example
Add-spsolution-literalpath c:\solution.wsp
Note This command simply adds a solution package to the SharePoint farm and does nothing else.
install-spsolution Example
Install-spsolution-identity solution.wsp-gacdeployment
Parameters
- Force: Forces the deployment of a new solution package.
- Allwebapplications: Deploys a new solution package to all Web applications in the farm.
- Fulltrustbindeployment: Allow full trust for bin deployment.
- Gacdeployment: Deploy to the global assembly cache.
- Time: Deploy the solution package at the specified times, and the default is to deploy it immediately.
- WebApplication: Deploys a new solution package for the specified Web application.
update-spsolution Example
Update-spsolution-identity Solution.wsp-literalpath c:\solutionv2.wsp-GACDeployment
Parameters
- Force: Forces the update of the solution package.
- Gacdeployment: Deploy to the global assembly cache.
- Time: The solution package is updated at the specified times and is immediately deployed by default.
uninstall-spsolution Example
Uninstall-spsolution-identity solution.wsp
Parameters
- Allwebapplications: Uninstalls the solution package from all Web applications in the farm.
- WebApplication: Uninstalls the solution package from the specified Web application collection.
- Time: The uninstall solution package is recycled at the specified times, and the default is to recycle the uninstallation immediately.
Note the command simply reclaims the deployed solution package and does not do anything else.
remove-spsolution Example
Remove-spsolution-identity solution.wsp
Enjoy SharePoint
SharePoint PowerShell Command Series (3) Operations related commands for WSP solution packages