I wish to calculate and filter files by SHA values to find duplicate files. I have over 6000 image files that I wish to perform this on in a single folder.
I would Like to calculate AND Insert the SHA value for a file into their filename.
This is what I am trying:
get-childitem * rename-item -NewName {$_.Name -replace '*' '*'+ Get-FileHash *./}
Where the + is where I wish to add the SHA value.
Here are the filenames and the errors I am getting. https://imgur.com/a/FJ8v0SG