Recently, we did a migration from SharePoint 2010 old site to a new site and as a result imported a bunch of records.
However, the Created By field was reset to the Account of the person performing the migration. To overcome this, I wrote a quick script to update the
Created By field. The field was updated from another field Old_Created_By_Person