Finds duplicate files based on a directory and a filetype filter.

Each folder is scanned recursivly for files that match a the given filter.
When a file is found the file is hashed and added to a collection based on the hash.
After all files are scanned the collection where files have the same has value are determined a duplicate and each duplicate's full path is printed to the screen.

.PARAMETER Directory
The Directory of the file to search for duplicates in.

The Filter used to perform the search for the directory specified.

If this switch is passed then the Write-Host is used instead of Write-Progress. Helpful if scheduling as a task.

Finds the duplicate xml files on the users desktop.

FindDuplicates -D %userprofile%\Desktop -F *.xml

Last edited Aug 16, 2014 at 8:32 PM by wiislee, version 1