Is it possible to change a file or folders last modified date/time via PowerShell?
I have a folder folder1/
and I want to change the last modified date and time of that folder and it's contents via PowerShell.
powershell
Is it possible to change a file or folders last modified date/time via PowerShell?
I have a folder folder1/
and I want to change the last modified date and time of that folder and it's contents via PowerShell.
Best Answer
Get the file object then set the property:
or for a folder: