Last active
August 29, 2015 14:02
-
-
Save dlundy/b8900f660646707e3d27 to your computer and use it in GitHub Desktop.
modify windows timestamp in powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get file as object | |
$a = Get-Item .\export.xlsx | |
# and then you can just set properties. wow | |
$a.LastWriteTime="5/1/2012 13:02" | |
$a.CreationTime="4/1/2012 12:22" | |
$a.LastAccessTime="5/13/2014 15:24:22" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment