pnp / pnp/powershell

[BUG]When trying to run Enable-PnPFeature I get an error 'Feature with Id {featureID} is not installed in this farm, and cannot be added to this scope.'

Open
#5,303 13 comments 0 reactions 1 assignee View on GitHub

@reshmee011 is already working on this.

Since Jun 5, 2026.

bug
Dominant language
C#
Stars
904
Forks
407
Avg merge
9h 16m
Merged PRs (30d)
10

Description

Reporting an Issue or Missing Feature

When calling Enable-PnPFeatures -identity {FeatureGuid} -scope web, the call fails with this error-
"Enable-PnPFeature: Feature with Id 'bced7401-2f20-445b-b1c0-111cf32ef160' is not installed in this farm, and cannot be added to this scope."

Expected behavior

It should enable the feature.

Actual behavior

It throws the error above

Steps to reproduce behavior

I connected app-only with this-
Connect-PnPOnline -Url $url -ClientId "{appID}" -CertificatePath .\cert.pfx -Tenant {tenantName}.onmicrosoft.com

Then I try to run the command-
Enable-PnPFeature -Identity $featureid -Scope Web

I can go in the UI and enable it, and it is there and enables.
I can run this if it is enabled-
Disable-PnPFeature -Identity $featureid -Scope Web

and that disables the feature.

I got a fiddler trace and see this call-
POST https://{tenantName}.sharepoint.com/_api/Web/Features/add(guid'{featureGUID}') HTTP/1.1

And the response-
{
"odata.error": {
"code": "-1, System.InvalidOperationException",
"message": {
"lang": "en-US",
"value": "Feature with Id '{featureGUID}' is not installed in this farm, and cannot be added to this scope."
}
}
}

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

3.1.0

Which operating system/environment are you running PnP PowerShell on?
  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.