Created
February 14, 2016 00:05
-
-
Save MrP/b6060d10d5bee26b6f8c to your computer and use it in GitHub Desktop.
PowerShell find duplicates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls Dropbox, Documents\Mega -recurse | | |
group -property length | | |
where { $_.count -gt 1 } | | |
% { | |
$_.group | | |
select | | |
get-filehash | | |
group -property hash | | |
where { $_.count -gt 1 } | | |
% { $_.group | select } | |
} | | |
echo | Out-File dupesDM.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment