Share via

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.

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | For business | Windows

1 answer

Sort by: Most helpful
  1. Yanli Jiang - MSFT 31,686 Reputation points Microsoft External Staff
    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.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

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