Undocumented stsadm command “stsadm –o uninstall”

Published 22 September 09 08:11 AM

Unfortunately I discovered an undocumented stsadm command today; having gotten into the habit of typing in “stsadm –o commandname” to get the list of parameters needed, I got stung by entering the wrong command name.

I was looking for the parameters to “UninstallFeature”, but I typed only in “uninstall”:

“stsadm –o uninstall”

You should think that this is not a command so it doesn’t matter, even if you type in “stsadm –help” this command will not be listed. OK, I’ll admit my approach to typing in these commands is probably not the best way around, but that is not really the point.

The point is that this command is undocumented, it doesn’t take any arguments, and it will start uninstalling SharePoint without even a warning. So will have to do some manual cleanup and then run the configuration wizard again…

Hope this can warn you before you try this out and thanks to Roy for asking me about uninstalling features, before the coffee had time to kick in.

Links to related content:

http://msdn.microsoft.com/en-us/library/ms442691.aspx

http://nerdtastictips.blogspot.com/2009/04/never-ever-type-stsadm-o-uninstall-yes.html

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# David Lozzi said on November 11, 2009 11:58 AM:

Yup, we just did it here. Meant to do uninstallfeature and forgot the feature.... What a lovely piece of functionality!

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

About Stian Kirkeberg

Stian Kirkeberg - Senior Consultant, Microsoft Consulting Services

This Blog

Syndication

Page view tracker