Thursday, January 7, 2021

PowerShell makes it easier

Change the "Date Created" and "Date Modified" of a file in Windows:

  • (Get-Item "C:\file1.txt").CreationTime=("3 August 2019 17:00:00")
  • (Get-Item "C:\file1.txt").LastWriteTime=("3 August 2019 17:10:00")

Much easier than changing your system clock!

No comments:

Post a Comment