folder lastaccesstime
(before | after) datetime
between datetime and datetime
Purpose
Warns when the specified folder's most recently accessed files have a last access time which is not before or after a specified date (and optionally time), or not within a specified timespan.Windows allows disabling last access time on NTFS folders
NTFS folders don't necessarily have an accurate last access time because this metadata can be disabled in order to prevent a lot of writing and, ostensibly, boost performance. When Windows 2000 was current (circa March 2010), Microsoft wrote:
If you have an NTFS volume with a very large number of directories (in excess of 70,000), and Windows 2000 does not respond quickly to dir commands, adding this entry to the registry might make directories list faster.
Use the following fsutil commands from an administrative shell:
To check the current setting: fsutil behavior query disablelastaccess
To enable Last access time update: fsutil behavior set disablelastaccess 0
To disable Last access time update: fsutil behavior set disablelastaccess 1
Or set relevant group policy to set a new default, then restart the computer.
Purpose
Warns when the specified folder's last access time is not before or after a specified date (and optionally time), or not within a specified timespan.
Notes
This requirement may be repeated in the same section.
“Before” warns when a specified folder's last access time is on or after a specified date/time.
“After” warns when a specified folder's last access time is on or before a specified date/time.
“Between” warns when a specified folder's last access time is not within a specified pair of dates/times.
All times and dates are (by default) in the timezone of the system on which Martinet runs.
Example configuration
[folder:\\my-unit-fileserver.ad.uillinois.edu\Storage \\my-unit-fileserver.ad.uillinois.edu\MyShare \\my-unit-fileserver.ad.uillinois.edu\MyShare\*]
# Warn when the folder(s) listed in the section appear to have a creation time between (midnight) September 1, 2025 and (midnight) September 12, 2025.
folder lastaccesstime between 2025-09-01 and 2025-09-12
Example output
Line 6: The following folders do not have a last access time between Monday, September 1, 2025 12:00 AM and Friday, September 12, 2025 12:00 AM:| Directory path | Last Access Time |
|---|---|
| \\my-unit-fileserver.ad.uillinois.edu\Storage\ | Mon 2025-07-07 8:26:01 AM |
| \\my-unit-fileserver.ad.uillinois.edu\MyShare\ | Thu 2025-07-24 4:46:20 PM |
| \\my-unit-fileserver.ad.uillinois.edu\MyShare\dig dug | Wed 2025-07-16 7:20:03 PM |
| \\my-unit-fileserver.ad.uillinois.edu\MyShare\donkey kong | Wed 2025-07-16 7:10:31 PM |
| \\my-unit-fileserver.ad.uillinois.edu\MyShare\galaga | Wed 2025-07-16 7:19:53 PM |
| \\my-unit-fileserver.ad.uillinois.edu\MyShare\mappy | Wed 2025-07-16 8:31:02 PM |
Example configuration
[folder:\\my-unit-fileserver.ad.uillinois.edu\Storage \\my-unit-fileserver.ad.uillinois.edu\MyShare \\my-unit-fileserver.ad.uillinois.edu\MyShare\*]
# Warn when the folder(s) listed in the section appear to have a creation time on or before January 1, 2042 (at midnight).
folder lastaccesstime after January 1, 2042
Line 6: The following folders have a last access time on or before Wednesday, January 1, 2042 12:00 AM:
| Directory Path | Last Access Time |
|---|---|
| \\my-unit-fileserver.ad.uillinois.edu\Storage\ | Mon 2025-07-07 8:26:01 AM |
| \\my-unit-fileserver.ad.uillinois.edu\MyShare\ | Thu 2025-07-24 4:46:20 PM |
| \\my-unit-fileserver.ad.uillinois.edu\MyShare\dig dug | Wed 2025-07-16 7:20:03 PM |
| \\my-unit-fileserver.ad.uillinois.edu\MyShare\donkey kong | Wed 2025-07-16 7:10:31 PM |
| \\my-unit-fileserver.ad.uillinois.edu\MyShare\galaga | Wed 2025-07-16 7:19:53 PM |
| \\my-unit-fileserver.ad.uillinois.edu\MyShare\mappy | Wed 2025-07-16 8:31:02 PM |
