Hiding features on premises using PowerShell

Luiz Gouvea 41 Reputation points
2021-04-19T14:41:36.067+00:00

Good morning, is it possible to hide a feature on premises using PowerShell instead of re-deploying the wsp?

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,231 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,811 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jerry Xu-MSFT 7,921 Reputation points
    2021-04-20T07:50:16.72+00:00

    Hi, @Luiz Gouvea ,

    I have tested in my end. To hide features we need to edit the .xml file in server side and wait for a while.

    The cmdlet mentioned in this thread seems not working in my end. The xml file is not modified after running them in the PowerShell. Thus I have to directly add the attribute in .xml file in server side manually and wait for a while.

    Update: After testing I find that you need to add $featureXMLfile.save($thisXMLfile) after the cmdlet to update. Or the change will not get saved.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful