1

When I run the code script below:

enable-spfeature "MyFeature" –url "http://myportal:5555" 

I get the error:

This feature is not a farm level feature and is not found in a Site level defined by the URL http://myportal.com:5555

Technically this is correct, but I wanted to enable the feature at the web application level. Is there a way to specifically indicate that?

1 Answer 1

2

The feature scope is defined within the feature definition, it is not set via PowerShell. If it is a Site level feature, then you will need to activate it individually for every site in your web application (if that's what you want).

3
  • I want to be able to activate it at the web application level. It's scoped at the web application level but when I enter the web application URL it seems to mistake it for a site collection URL. Commented Oct 1, 2013 at 18:32
  • When you type Get-SPFeature "MyFeature" what comes up under Scope? Commented Oct 1, 2013 at 18:35
  • It says Web which makes sense for the error but in the UI it shows up as a feature for the web application. Is there any reason why that might occur? I don't currently have the source code for this. Commented Oct 1, 2013 at 19:22

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.