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

Posted on 04/06/2014, in STSADN and tagged , , , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: