Installfeature: Stsadm operation (Office SharePoint Server)

Applies To: Office SharePoint Server 2007

This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.

 

Topic Last Modified: 2015-03-09

Operation name: Installfeature

Description

Installs a feature.

Note

Farm-scoped features are also automatically activated during this stage. Other features might still need to be activated.

Syntax

stsadm -o installfeature

**   -filename <relative>**

**   -name <feature folder>**

**\[-force\]**

Parameters

Parameter

Value

Required?

Description

filename

A valid file path, such as "MyFeature\Feature.xml"

Yes

Path to feature must be a relative path to the 12\Template\Features directory. Can be any standard character that the Windows system supports for a file name.

Note

If the feature file is not found on disk, the following error message is displayed: "Failed to find the XML file at location 12\Template\Features&lt;file path>."

name

Name of the feature directory, such as “MyFeature”

Yes

Name of the feature folder located in the 12\Template\Features directory

force

<none>

No

Forces an installation of a feature that is already installed.