Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
SDK Documentation
General Reference
 STSADM Command Extension
Community Content
In this section
Statistics Annotations (1)
STSADM Command Extension

Specifies server-side code that allows STSADM to have new commands available to execute from the command line.

Real World Example

STSADM does not include the capability to enumerate Web Parts per site collection. You could design nn extension object to allow STSADM to include a new command that would enable this capability.

Technical Details

An STSADM command extension is composed of configuration information in an XML file that is parsed by STSADM, and code that is called whenever the new command is executed by STSADM. The configuration XML file contains each command name with a reference to a class that implements the command.

The following is an example of an STSADM command extension from the stsadmcommands.sps.xml file included with Microsoft Office SharePoint Server 2007.

Xml
<commands>
   <command name="setsitedirectoryscanschedule" class="Microsoft.SharePoint.Portal.SiteDirectory.LinksCheckerJobCommand
   Line, Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral,PublicKeyToken=71e9bce111e9429c"/>
   <command name="getsitedirectoryscanschedule" class="Microsoft.SharePoint.Portal.SiteDirectory.LinksCheckerJobCommand
   Line, Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral,PublicKeyToken=71e9bce111e9429c"/>
</commands>

The configuration XML file for an STSADM command extension is stored in the following path:

%COMMONPROGRAMFILES%\Microsoft Shared\web server extensions\12\CONFIG

The assemblies for an STSADM command extension are normally installed in the global assembly cache.

Support Details

Implementation of an STSADM command extension would require some code and configuration information to be installed on each server running Office SharePoint Server.

Because this is an administrator-level enhancement that is available only to someone with server administrative access, it is supported.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Real world examples of STSADM extensions      Robin Meuré   |   Edit   |  
Check out the blog of Gary Lapointe : http://stsadm.blogspot.com/ , he has created some very useful STSADM extensions to use. An overview of all the custom commands he has developed can be found here http://stsadm.blogspot.com/2007/08/stsadm-commands_09.html.
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker