Relative Content

Tag Archive for powershellsharepointsharepoint-online

SharePoint Online PowerShell – Publish a page without changing modified by property

I would like to use PnP PowerShell to make a change to multiple SharePoint Online News Post pages. I can successfully make the change and then publish the page again using $pageName.File.Publish(), and then Invoke-PnPQuery. However this updates the modified by property to who executes the script, which I don’t want as I would like to retain the original modifier.