Tuesday, July 1, 2014

Add or Remove solution using Powershell in SharePoint 2010

From the Start menu, select All Programs > Microsoft SharePoint 2010 Products > SharePoint 2010 Management Shell

Deploy solutions using powershell

Add-SPSolution -LiteralPath C:\Users\jinivthakkar\Desktop\MySolution.wsp

Install-SPSolution -Identity HitCounter.wsp -WebApplication http://myserver03:8888 -GACDeployment –CASPolicies

Get-SPSolution MySolution.wsp



Removing solution

Retract Solution from SharePoint Farm

Uninstall-SPSolution -Identity MySolution.wsp -WebApplication http://myserver03:8888

Remove solution from SharePoint Farm

Remove-SPSolution -Identity MySolution.wsp




No comments:

Post a Comment