0

I can enable this using the site settings, but I am looking to write a PowerShell script add into a PnP template to enable documents to be opened in the client application vs in the browser. This is for SharePoint online.

I cannot seem to find the feature ID when I look them up in PowerShell, does anyone know any documentation on how to find the feature id's for document libraries.

1 Answer 1

1

As per Microsoft official documentation at:
Set the default open behavior for browser-enabled documents (Office Web Apps when used with SharePoint 2013),

Feature ID for Open Documents in Client Applications by Default feature is:
8A4B8DE2-6FD8-41e9-923C-C7C3C00F8295

You can enable this feature using PnP PowerShell like:

Enable-PnPFeature -Identity 8A4B8DE2-6FD8-41e9-923C-C7C3C00F8295

Documentation - Enable-PnPFeature


You can get the feature details using PowerShell commands like:

Get-SPFeature -Limit All | Where-Object { $_.DisplayName -like "*Open*" }

You can run the following command to get all features:

Get-SPFeature | select ID, DisplayName, Scope

Documentation - Get-SPFeature

References:

  1. SharePoint 2010: List of Features
  2. SharePoint 2013: List of Features
2
  • So the documentation for 2013 to SP online has not changed in this instance?
    – hittle08
    Commented Oct 29, 2020 at 14:49
  • No, feature ID for this is same for SP 2010,2013, SP online, etc. Commented Oct 29, 2020 at 15:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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