en-US

DisabledWebPartIds

Parameter of SPOTenant

Applies to : SharePoint Online

Description

Allows administrators to prevent certain web parts from being added to pages or rendering on pages on which they were previously added. Currently, only the following web parts can be disabled in such a manner:

  • Amazon Kindle: 46698648-fcd5-41fc-9526-c7f7b2ace919
  • YouTube: 544dd15b-cf3c-441b-96da-004d5a8cea1d
  • Twitter: f6fdf4f8-4a24-437b-a127-32e66a5dd9b4
  • Embed: 490d7c76-1824-45b2-9de3-676421c997fa
  • Microsoft Bookings: d24a7165-c455-4d43-8bc8-fedb04d6c1b5
  • Stream: 275c0095-a77e-4f6d-a2a0-6a7626911518

To disable a specific web part, you need to enter its GUID as the parameter. You can enter multiple GUIDs by using a comma to separate them, for example Set-SPOTenant -DisabledWebPartIds 46698648-fcd5-41fc-9526-c7f7b2ace919,544dd15b-cf3c-441b-96da-004d5a8cea1d. To view a list of disabled web parts, use Get-SPOTenant to get DisabledWebPartIds.

To re-enable some disabled web parts, use the Set-SPOTenant with the -DisabledWebPartIds parameter and corresponding GUIDs that you still want to keep disabling. To re-enable all disabled web parts, use Set-SPOTenant -DisabledWebPartIds @().

Microsoft Learn documentation

Characteristics

Type
System.Guid[]
Parameter sets
(All)

Apply

This value type (System.Guid[]) must be built by hand: see the examples on the policy page and the Microsoft documentation.