Add to My Yahoo! | Google Reader or Homepage | Add to Windows Live | Add to Windows Live Alerts

Wictor Wilén

SharePoint Server MVP / Author / MCT / MCTS / MCP / MSc writing about SharePoint and other interesting Microsoft technologies

Confusing names of commands in SharePoint 2010

Posted at 2010-03-18 02:04 by Wictor Wilén in SharePoint 2010 with 6 comments.

If you have been developing with SharePoint for the last few years you probably are very aware of the SPWeb and SPSite naming is a bit confusing. SPWeb is actually a site and SPSite is a site collection. It's always fun explaining this to new SharePoint developers...

In SharePoint 2010 this naming convention confusion continues and now expands to the administration of SharePoint.

Let's for example take the example when you are activating or deactivating features. In the web interface of SharePoint 2010 and SharePoint 2007 it is called Activate and Deactivate.

Feature activation in SharePoint 2010

The same term is used in STSADM with the activatefeature and deactivatefeature operations when scripting feature activations and deactivations. But STSADM is old-school in SharePoint 2010 right? So we use PowerShell to deploy the solutions, and guess what, there are no cmdlets using the verb activate or deactivate. Instead activate is called enable and deactivate is called disable. This gives us the PowerShell cmdlets Enable-SPFeature to activate a feature and Disable-SPFeature for deactivation.

And it doesn't stop there if we look at the PowerShell commands. Deploying a solution is called Deploy in Central Administration and deploysolution using STSADM. In PowerShell it is called Install (Install-SPSolution). And it gets better Retracting a solution is called Remove in Central Administration, retractsolution in STSADM and Uninstall (Uninstall-SPSolution) in PowerShell.

I never said the SharePoint world is easy...and that's why I'm all into it...

Comments and trackbacks

#  Same with upgrade by Bjørn
Screenshot from websnpr The STSADM term for upgrading a solution is upgradesolution, but in PowerShell it's Update... I like it. Keeps those who know looking like geniuses.
#  No IE9 for XP; Big Savings in Moving to the Cloud; IT is Worrying Less, Deploying Windows 7 by Trackback
Screenshot from websnpr Top News Stories Windows XP: No IE9 for You (Computerworld) Microsoft's new browser, Internet Explorer
#  Social comments and analytics for this post by Trackback
Screenshot from websnpr This post was mentioned on Twitter by wictor: Just blogged: Confusing name of commands in SharePoint 2010 http://bit.ly/bRgzoe
#  @Bjørn by Wictor Wilén
Screenshot from websnpr Yea, I bet there are more stuff in there.
#  Same with user solutions by Anders Rask
Screenshot from websnpr Also in the solution gallery, you dont Deploy or Retract solutions as farm solutions! No, you Activate and Deactivate them! But in PowerShell you Install and Uninstall them (eg. Install-SPUserSolution). This is kind of confusing since feature activation/deactivation is called Enable/Disable. ARGH my head hurts! :-)
#  @Anders by Wictor
Screenshot from websnpr Someone must be working really hard making SharePoint more complex then it should have to be!
Make a comment on this post:
Subject:  

Your name:  
Your Url:  
Note: submissions may have to be approved before being visible, so don't submit your comment multiple times.
Real Time Web Analytics