In this article, we are going to learn "How to update list metadata using PowerShell". In some cases we want a particular person to be the created by and modified by and we also want to update the time stamp of modified at and created. We can achieve this using PowerShell. Power shell to update Created By,Modified By, Created,Modified field values --Load SharePoint CSOM Assemblies-- Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" -- Replace the tenantName and listName with your site name and list name -- $SiteUrl = "https://tenantName.sharepoint.com/sites/training/" $ListName= "listName" $ID=1 ---- Replace the Username and Password with your one-- $Username = "userId" $Password = "pwd" | ConvertTo-
Techrobbers provides information related to Modern SharePoint, SharePoint Online, SharePoint Framework, Power Automate, PowerShell, PnP, Microsoft Teams and other things which are related to Microsoft 365.