PowerShell: Find files within x seconds of each other, possible duplicates

This PowerShell script finds two files last-updated (or created) within x seconds of each other. You can specify the max difference in time with the variable “$maxDifferenceInSeconds”. With a few changes you could make this program work with minutes, hours or days. In our scenarios, we receive files from a vendor or another application. Sometimes, […]