An alternative way of activating the SharePoint Connector feature in SharePoint

While the installation guide of SharePoint Connector shows how to activate the ADAM web parts using the Site Collection Features site settings in SharePoint, there is an alternative way that has not been documented as of yet.

The SharePoint Command-line Administration Tool

Both Windows SharePoint Services 3.0 (WSS 3.0) and Microsoft Office SharePoint Server (MOSS 2007) come with the SharePoint command-line administration tool stsadm.exe. This tool is located in the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\bin directory on the machine hosting the SharePoint services.

The command-line tool allows you to perform administrative tasks on SharePoint through the command-line interface, which allows you to script and batch common tasks otherwise done through the Central Administration site or other SharePoint interface.

Using stsadm.exe to activate the SharePoint Connector feature

You can also use the command-line administration tool to activate or deactivate SharePoint features. And since the ADAM SharePoint Connector web parts are wrapped in a SharePoint feature package, you can use stsadm.exe to automate this step. In the following command line, you should replace the URL part with the URL of any SharePoint site on which to activate the ADAM SharePoint Connector web parts. Bear in mind that the SharePoint Connector installation guide should have been followed up till the point where you activate the feature through the UI.

stsadm.exe -o ActivateFeature -name Adam.SharePoint.WebParts 
  -url http://server:80/

Of course, it also works the other way around:

stsadm.exe -o DeactivateFeature -name Adam.SharePoint.WebParts 
  -url http://server:80/

And finally...

As said, this alternative way of activating the SharePoint feature is not documented in our installation guide at this time. It can come in handy when you're doing lots of installations on end or want to script installations using batch files. Have a very nice day!

Comments

Leave a comment
You must be logged in to post comments.
Sign in now
 
 
Technical
Business
rss feed