How to find collapsible sections in home page of all sites using pnp powershell?

H Risbud 251 Reputation points
2024-05-15T15:49:02.9366667+00:00

How we can find collapsible sections in home page of all SharePoint Online Sites using PnP Powershell?

Get-PnPPageComponent -Page Home is not giving any output. PropertiesJson is blank for PageText webpart.

User's image

How to disable this section collapsible using powershell?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,913 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,186 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AllenXu-MSFT 16,961 Reputation points Microsoft Vendor
    2024-05-16T06:21:43.9333333+00:00

    Hi @H Risbud,

    No, it is impossible to disable "Make this section collapsible" using PowerShell as per my knowledge. You need to do it manually.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.