Monthly Archives: June 2014

SharePoint Commands STSADM – Features & Solutions

Feature:

STSADM deactivating feature

  • stsadm -o deactivatefeature -id FEATUREGUID -url http:// -force
  • stsadm -o execadmsvcjobs
STSADM activating feature
  •  stsadm -o execadmsvcjobs stsadm -o activatefeature -id FEATUREGUID -url http://
  •  stsadm -o activatefeature -id FEATUREGUID -url http://

Solution:

STSADM Retracting solution

  •  stsadm -o retractsolution -name WSPNAME.wsp -immediate -allcontenturls
  •  stsadm -o execadmsvcjobs

STSADM delete solution

  • stsadm -o deletesolution -name WSPNAME.wsp -override
  • stsadm -o execadmsvcjobs STSADM

STSADM add solution

  • stsadm -o addsolution -filename WSPNAME.wsp
  • stsadm -o execadmsvcjobs

STSADM deploy solution

  • stsadm -o deploysolution -name WSPNAME.wsp -url http:// -immediate -allowgacdeployment

How to use in CMD File:

  • SharePoint 2007 – C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
  • SharePoint 2010 – C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN
  • SharePoint 2013 – C:\Program Files\Common Files\Microsoft Shared\web server extensions\15\BIN
Advertisements