robocopy D:\Source\Folder C:\Temp\DummyAudit /L /E /B /XJ /R:0 /W:0 /TS /FP /NP /LOG:C:\Temp\recent_files.txt /MAXAGE:20260503
Short description
This robocopy command performs a dry-run audit of files under D:\Data\Users, listing files that would be copied without actually copying anything. It includes subfolders, excludes junction points, outputs full paths and timestamps, suppresses progress percentages, and writes the results to a log file.
The /MAXAGE:20260503 option limits the output to files modified on or after 3 May 2026.
Breakdown
robocopy
Robust File Copy. A built-in Windows command-line tool for copying, comparing, and auditing files and folders.
D:\Data\Users
The source folder being checked.
C:\Temp\DummyAudit
The destination folder. Because /L is used, files are not actually copied here.
/L
List-only mode. Shows what would happen, but does not copy, delete, or modify files.
/E
Includes all subfolders, including empty ones.
/B
Runs in Backup mode, which can help access files where normal permissions may be restricted. Usually requires appropriate administrative/backup privileges.
/XJ
Excludes junction points, helping avoid loops or accidentally traversing redirected folders.
/R:0
Sets retries to zero if a file cannot be accessed.
/W:0
Sets the wait time between retries to zero seconds.
/TS
Includes source file timestamps in the output.
/FP
Displays full file paths in the output.
/NP
No progress percentage. Keeps the log cleaner.
/LOG:C:\Temp\users_recent.txt
Writes the output to a log file.
/MAXAGE:20260503
Excludes files older than 2026-05-03, meaning the report focuses on files modified on or after that date.