1

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.

  • 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
3

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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