Note: This module is a work in progress!
PSDuplicates is a PowerShell module for identifying duplicate files.
It can detect duplicate files using one of two methods:
- Filename comparison.
- Checksum comparison (using SHA-256).
The module also includes an optional GUI with which duplicate files can be viewed and deleted.
Retrieve a hash table containing the results of a duplicate file search (for manual processing):
$Duplicates = Get-ChildItem . -File -Recurse | Get-Duplicates
Search for duplicate files by checksum (slower, but more accurate and thorough):
$Duplicates = Get-ChildItem . -File -Recurse | Get-Duplicates -UsingHash
View search results via GUI (Remove-Item currently uses the WhatIf
parameter):
Get-ChildItem . -File -Recurse | Get-Duplicates -Interactive