Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 2 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
add comment

Your Answer

 
discard

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.