Adding
To add a solution to the Farm solution store use the Add-SPSolution cmdlet:
Add-SPSolution –LiteralPath "C:\Deployment\MySharePointSolutionPackage.wsp"
To add a Sandboxed solution use the Add-SPUserSolution cmdlet:
Add-SPUserSolution –LiteralPath "C:\Deployment\MySharePointSolutionPackage.wsp" –Site http://webapplication/sitecollection
Installing
To install ( commonly known as deploy) a Farm Solution we use the Install-SPSolution cmdlet:
Install-SPSolution –Identity MySharePointSolutionPackage.wsp –WebApplication http://webapplication –GACDeployment
To install ( commonly known as deploy) a Sandboxed Solution we use the Install-SPUserSolution cmdlet:
Install-SPUserSolution –Identity MySharePointSolutionPackage.wsp –Site http://webapplication/sitecollection
Updating
To update (know as upgrade in stsadm) a Farm solution use the Update-SPSolution cmdlet:
Update-SPSolution –Identity MySharePointSolution.wsp –LiteralPath “C:\Deployment\MySharePointSolutionPackage.wsp” –GacDeployment
To update (know as upgrade in stsadm) a Sandbox solution use the Update-SPUserSolution cmdlet:
Update-SPUserSolution –Identity MySharePointSolution.wsp –Site http://webapplication/site –ToSolution MySharePointSolutionPackage.wsp
Removing
To uninstall and remove FARM level solutions use the Uninstall-SPSolution and Remove-SPSolution cmdlets:
Uninstall-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://webapplication
Remove-SPSolution –Identity MySharePointSolution.wsp
To uninstall and remove Sandbox solutions use the Uninstall-SPSolution and Remove-SPSolution cmdlets:
Uninstall-SPUserSolution –Identity MySharePointSolution.wsp –Site http://webapplication/sitecollection
Remove-SPUserSolution –Identity MySharePointSolution.wsp –Site http://webapplication/sitecollection
To get a list of all of the powershell cmdlets that deal with solutions use:
Get-Command –noun *SPSolution*
To run all of the Administrative jobs that are queued:
Start-SPAdminJob
6945d7ab-bb8f-48c6-927f-4662983a0990|0|.0