Setting File Creation Timestamp from Modified Time

Note to self: here’s how to easily reset the file creation timestamp, replacing it with the file modification date, using PowerShell on Windows:

Get-ChildItem -recurse -filter *.jpg| % { $_.CreationTime = $_.LastWriteTime }

I wanted to do this recently when a bunch of my photos had them broken by a recovery issue. Yoinked from this StackOverflow.

Leave a Reply

Your email address will not be published. Required fields are marked *

The reCAPTCHA verification period has expired. Please reload the page.