I am working on an enterprise wiki site collection inside sharepoint on-premises 2013, and i want to update a field named "PageNumber", without affecting the modified, modifedby & version number, so i wrote this powershell script and i run it inside a test wiki site:-
$site = get-SPWeb http://**/site/customerwiki/
#specify the list name
$list = $site.Lists["Customer KB"]
$listitems = $list.Items
foreach ($listitem in $listitems)
{
write-host $listitem["ID"] "processed"
$listitem["PageNumber"] = $listitem["Initial"]+$listitem["ID"];
$listitem.SystemUpdate()
write-host $listitem["Name"] "has been updated."
}
where the wiki pages got updated without creating new version or update the modified-by or modified date.. now i am asking this question as i found many articles which mentioned that suing SystemUpdate()
will create new versions such as this link:- How to Update SharePoint List Items without Creating New Versions
so can anyone advice on this?