Sharepoint 2019 edit pages with powershell

Daniel 61 Reputation points
2024-11-14T07:00:46.03+00:00

Hi,

I am wondering if there is a way to edit sharepoint pages (.aspx) using powershell? Either through cmdlets or using the rest API.

We need to go over hundreds of pages removing broken links in the body text.

The environment is sharepoint on-premise 2019 and subscription edition.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,387 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,916 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yanli Jiang - MSFT 27,566 Reputation points Microsoft Vendor
    2024-11-15T08:21:57.18+00:00

    Hi @Daniel ,

    Unfortunately, according to my research, there is currently no such way to use PowerShell to batch modify Pages.

    PowerShell does not have a corresponding command to achieve this.

    The current method is to recommend that you modify it manually. Or you can go to the Partner Center, where customized services are provided. I hope you can get the result you want here.

    Regarding this issue, I also think that your needs are creative, which allows us to discover the user's needs for this function. So we suggest that you can submit Feedback on this issue. Microsoft values its customer feedback and a lot of features have been developed and suggested by customers via feedback.

    Good day! :-)


    If the answer is helpful, please click "Accept as 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.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.