Sign up ×

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

1 Answer 1

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


