This PowerShell script retrieves the last modified time of all files in a folder, including subfolders.
- findFilesMod.ps1: Filters files based on their filename or extension.
- findAllFilesMod.ps1: Retrieves all files, without filtering by file type.
The output.csv file will be saved in the same location as the script.
- To run the script, right-click the script file and choose Run with PowerShell.
- The
output.csvwill be pre-sorted by date and time modified, in descending order.
If you encounter an error about script execution being disabled, run the following command in PowerShell as Administrator:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser