Home How-to change windows files modified, access and creation dates with Powershell
Post
Cancel

How-to change windows files modified, access and creation dates with Powershell

Using PowerShell and the following commands it’s possible to change the “Date Modified”, “Date Accessed”, and “Date Created” show in the file explorer.

Date Modified

1
 $(Get-Item example_filed_name.txt).lastwritetime=$(Get-Date "03/08/23 12:00")

Date Accessed

1
 $(Get-Item example_filed_name.txt).lastaccesstime=$(Get-Date "03/08/23 12:00")

Date Created

1
$(Get-ChildItem example_filed_name.txt).CreationTime=$(Get-Date "03/08/23 12:00")
This post is licensed under CC BY 4.0 by the author.