Wednesday, July 22, 2015

Retract/Remove Solution - SharePoint 2010


Follow the steps for STSADM:
  1. Open command prompt and navigate to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN
  2. Use the stsadm command = stsadm -o retractsolution -name solutionName.wsp -immediate
  3. and then remove the wsp = stsadm -o deletesolution -name solutionName.wsp
Follow the steps for Powershell:
  1. Go to All Programs => Microsoft SharePoint 2010 Products =>SharePoint 2010 Management Shell =>Run as administrator
  2. Uninstall-SPSolution -identity "solutionName.wsp"
  3. Remove-SPSolution -identity "solutionName.wsp"

How to download/export the .wsp files in sharepoint 2007



Download the powershell form this link:  https://www.microsoft.com/en-us/download/details.aspx?id=20020

Then follow the below steps with power shell.

1) [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")

2) $farm = [microsoft.sharepoint.administration.spfarm]::Local

3) $wsp = $farm.Solutions.Item(“ToolbarManager.wsp“).SolutionFile

4) $wsp.SaveAs(“c:\ ToolbarManager.wsp “)

Taking more time to retract the solutions fine in sharepoint


Below command can use for retracting the solutions if take more time.

STSADM Command: stsadm -o execadmsvcjobs