SharePoint Powershell commands for Solution Deployment

Adding Solution

For adding Farm solution   Add-SPSolution –LiteralPath “C:\Intranet.wsp” 

For adding Sandbox Solution  Add-SPUserSolution –LiteralPath “C:\Intranet.wsp”  –Site http://yourwebapplication/yoursitecollection

 

Installing Solution

For installing Farm solution   Install-SPSolution –Identity Intranet.wsp –WebApplication http://yourwebapplication –GACDeployment

For installing  Sandbox Solution Install-SPUserSolution –Identity Intranet.wsp –Site http://yourwebapplication/yoursitecollection 

 

Updating Solution

For installing Farm solution   Update-SPSolution –Identity Intranet.wsp –LiteralPath “C:\Intranet.wsp” –GacDeployment

For installing  Sandbox Solution Update-SPUserSolution –Identity Intranet.wsp –Site http://yourwebapplication/yoursitecollection –ToSolution  IntranetV1.1.wsp

Removing Solution

For installing Farm solution

Uninstall-SPSolution –Identity Intranet.wsp –WebApplication http://yourwebapplication/ Remove-SPSolution –Identity Intranet.wsp

For installing  Sandbox Solution

Uninstall-SPUserSolution –Identity Intranet.wsp –Site  http://yourwebapplication/yoursitecollection Remove-SPUserSolution –Identity Intranet.wsp –Site  http://yourwebapplication/yoursitecollection

 

Add Comment