Open PowerShell in the target directory. Normally, you can open PowerShell in current directory by holding shift and right-clicking the context menu Open PowerShell Here.
$(Get-Item FILENAME).creationtime=$(Get-Date ["MM/DD/YYYY HH:MM am/pm"])
$(Get-Item FILENAME).lastaccesstime=$(Get-Date ["MM/DD/YYYY HH:MM am/pm"])
$(Get-Item FILENAME).lastwritetime=$(Get-Date ["MM/DD/YYYY HH:MM am/pm"])
To change the creation time of the file filename.mp4
in current folder to current date time, use the following command.
$(Get-Item ".\filename.mp4").lastwritetime=$(Get-Date)
To change the last modified time of the file filename.mp4
in current folder to 11/24/2015 06:00 am, use the following command.
$(Get-Item ".\filename.mp4").lastwritetime=$(Get-Date "11/24/2015 06:00 am")