Compare files in folders Using PowerShell


below is the snippet for that

get-childitem -File -Recurse -Path C:\work | Group-Object -Property { ($_ | Get-FileHash).Hash } | Where-Object Count -gt 1

Regards,

Chaitanya

Leave a comment

Design a site like this with WordPress.com
Get started