Stompy - Timestomp Tool To Flatten MAC Times With A Specific Timestamp

AVvXsEjGwlVXosv8tPSN6WLhyGjxgcf5CIjlQNhtsx3vEfrgwo7kcxiyjS3JuLyYAaF_NX-jzO5qARKDOdnziTr7LEYVXO1Fqvcvvgh_UOpMrpoai2Ad3fehvpjqMMSaJJkOg7-iJdnBfNrFoxM-vo4Qyxmg4yVutAFTXJXjSkL4ba-es5ZESHAE72ifLkY1nF56=w640-h102

A PowerShell function to perform timestomping on specified files and directories. The function can modify timestamps recursively for all files in a directory.
  • Change timestamps for individual files or directories.
  • Recursively apply timestamps to all files in a directory.
  • Option to use specific credentials for remote paths or privileged files.

I've ported Stompy to C#, Python and Go and the relevant versions are linked in this repo with their own readme.
  • C# version.
  • Python
  • Go

Usage​

  • -Path: The path to the file or directory whose timestamps you wish to modify.
  • -NewTimestamp: The new DateTime value you wish to set for the file or directory.
  • -Credentials: (Optional) If you need to specify a different user's credentials.
  • -Recurse: (Switch) If specified, apply the timestamp recursively to all files in the given directory.

Usage Examples​

Specify the -Recurse switch to apply timestamps recursively:
  1. Change the timestamp of an individual file:
Invoke-Stompy -Path "C:\path\to\file.txt" -NewTimestamp "01/01/2023 12:00:00 AM"
  1. Recursively change timestamps for all files in a directory:
Invoke-Stompy -Path "C:\path\to\file.txt" -NewTimestamp "01/01/2023 12:00:00 AM" -Recurse
  1. Use specific credentials:
Demo:
AVvXsEjGwlVXosv8tPSN6WLhyGjxgcf5CIjlQNhtsx3vEfrgwo7kcxiyjS3JuLyYAaF_NX-jzO5qARKDOdnziTr7LEYVXO1Fqvcvvgh_UOpMrpoai2Ad3fehvpjqMMSaJJkOg7-iJdnBfNrFoxM-vo4Qyxmg4yVutAFTXJXjSkL4ba-es5ZESHAE72ifLkY1nF56=w640-h102

AVvXsEi5DNraOX8EbEmhcOjjuIZmOvGY36PQMULK-R7WS33GNDSlrXpW-oNwTnjS6Zrya6oLfQjmzAZBp8viHC6H0BK2Qyx6_gpFn4oD3GCbDjjhAyUbpk8_zU4AO_P38E8QwYMi8Yp7q0oPRZ9z_6eELWWqg-AKR1qQqRWdMN5RUFTXDCWpv9dRpDLOoeOhEx1k=w640-h44
 
뒤로
상단