I am working on a SharePoint online classic team site. and from time to time I run these remote power-shell commands:-
1- To un-post a modern page from being shown as News:-
$ clientSidePage = Get-PnPClientSidePage -Identity "TEST-PAGE.aspx" $ clientSidePage.DemoteNewsArticle()
2- To disable comments on a modern page:-
$ cred = Get-Credential Connect-PnPOnline -Url hhttps://*.sharepoint.com/ -Credential $ cred Set-PnPClientSidePage -Identity "test-page.aspx" -CommentsEnabled:$ false
now the first command will cause the ModifiedBy + the Modified fields to be updated. where the second command will cause the ModifiedBy field to be updated. also both commands will cause users’ alerts to be sent (when users set the alert on every change).
so can i modify my above 2 commands, so the ModifiedBy and the Modified fields will not get updated? also to prevent users’ alerts from being sent?