Forum Discussion
JimGr
Apr 26, 2023Copper Contributor
PnP Powershell - Setting "modified by" on documents in library
Hi, I have a document library where I want to mass change the "modified by" of the documents in it. I've tried the following on a single document: $List = "My document library"
$ID = "2"...
ganeshsanap
Apr 26, 2023MVP
JimGr Yes, Editor is the correct internal name of Modified by column in SharePoint.
Also, you have to use the -UpdateType parameter with the Set-PnPListItem cmdlet.
Check below links for more information about what value to use for this parameter:
- Set-PnPListItem
- How to change the value of a column "Modified By" of a SharePoint List with PowerShell?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs