Skip to content

Instantly share code, notes, and snippets.

@obscuresec
Created May 20, 2014 00:28
Show Gist options
  • Save obscuresec/7b0cf71d7a8dd5e7b54c to your computer and use it in GitHub Desktop.
Save obscuresec/7b0cf71d7a8dd5e7b54c to your computer and use it in GitHub Desktop.
PowerShell TimeStomp
PowerShell.exe -com {$file=(gi c:\demo\test.txt);$date='01/03/2006 12:12 pm';$file.LastWriteTime=$date;$file.LastAccessTime=$date;$file.CreationTime=$date}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment