I have many video files ending with extensions mov, avi, mp4, and mts. I need to change their "date created" to their "date modified value"

I tried using the following powerhsell script:

Get-ChildItem -recurse -filter *.mov *avi *mp4 *mts | % { $.CreationTime = $.LastWriteTime }

But all I got was a bunch of error messages

enter image description here

  • The error you're getting is related to permissions. Make sure you have the necessary access to those files. Jun 16, 2014 at 3:41

1 Answer 1


For most access denied errors there's usually a rights/permissions issue. First, I would retry your existing command with an elevated powershell instance. To elevate, right click on the powershell icon and choose run as administrator.

If that fails, navigate to the location with your user account and verify that you have permissions (for the purpose of testing, ensure you have "full access" to rule out permissions). Re-mediate any permissions issues and try again.

If you're still having issues consider whether or not you're on a domain, whether or not the files are on a network/drive share, and whether or not that share is linux or microsoft. It might be helpful to update your question with those specifics.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .