SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a feature with webparts that needs to be activated using powershell. I need a way to either hide the feature on the Site Collection Administration => Features (under Site Settings) or to prevent activation from the Site Settings. Any ideas greatly appreciated.

share|improve this question
Why does it have to be activated via PowerShell? Arguments? – RJ Cuthbertson Sep 6 '12 at 20:22
Don't give your user site collection admin rights. – Maria Burton Sep 6 '12 at 20:26
up vote 3 down vote accepted

If you are the creator of the feature, simply set the Hidden attribute to TRUE in the feature.xml file. That will make it so the feature cannot be enabled/disabled through the UI but can still be controlled through powershell

share|improve this answer
:) something so simple....many thanks – MikeC Sep 7 '12 at 15:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.