Skip to content

Instantly share code, notes, and snippets.

@dimon4ezzz
Last active May 31, 2020 12:18
Show Gist options
  • Save dimon4ezzz/4bf326b1750b4ef7ecbcd2d50da354d7 to your computer and use it in GitHub Desktop.
Save dimon4ezzz/4bf326b1750b4ef7ecbcd2d50da354d7 to your computer and use it in GitHub Desktop.
does fake date for all files in this directory (NTFS)
$date = "2020-01-01T00:00:00Z";
Get-ChildItem * | foreach { $_.CreationTimeUtc = Get-Date $date; $_.LastWriteTimeUtc = Get-Date $date; $_.LastAccessTimeUtc = Get-Date $date }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment