To change the file date using PowerShell, here are the commands you need to run:Ĭhange the creation date/timestamp of a file named log1.txt: (Get-Item 'D:\Test\log1.txt').CreationTime=('3 August 2019 17:00:00')Ĭhange the last write date/timestamp of a file named log1.txt: (Get-Item 'D:\Test\log1.txt').LastWriteTime=('3 August 2019 17:10:00')Ĭhange the last accessed date/timestamp of a file named log1.txt: (Get-Item 'D:\Test\log1.txt').LastAccessTime=('3 August 2019 17:10:00')Ĭhange the date/timestamp of all files in a folder named Test: Using Attribute Changer (GUI) Change File Creation, Last Accessed or Modified Date Using PowerShell.