powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[FEATURE] Get-PnPFeature is missing a large number of features

Open iloving opened this issue 3 years ago • 0 comments

My sharepoint script enables and disables a variety of features on the site. To improve logging and code managability, I wanted to use DisplayNames for the desired features rather than work directly with GUIDs.

However, Get-PnPFeature output differs drastically rom what is provided by Sharepoint, making the cmdlet effectively useless.

Expected behavior

I expect Get-PnPFeature to provide a complete, comprehensive list of all available sharepoint features.

Actual behavior

Only a small subset is included, and some of the GUIDs are wrong.

For example, the following features are missing: Minimal Download Strategy 87294c72-f260-42f3-a41b-981a2ffce37a Mobile Browser View d95c97f3-e528-4da2-ae9f-32b3535fbb59

In sharepoint, there are Announcement Tiles 3016e6bf-cfe2-4b9d-bfd0-41a1d1d62ab8 But the output of Get-PnPFeature has AnnouncementsList 00bfea71-d1ce-42de-9c63-a44004ce0104

Steps to reproduce behavior

  1. Run Get-PnPFeature against any existing site
  2. Go to Site Settings->Site Features and compare the the list against the output provided by Get-PnPFeature

What is the version of the Cmdlet module you are running?

1.11.0

Which operating system/environment are you running PnP PowerShell on?

  • [ ] Windows
  • [ ] Linux
  • [X] MacOS
  • [ ] Azure Cloud Shell
  • [ ] Azure Functions
  • [ ] Other : please specify

iloving avatar Aug 25 '22 20:08 iloving