some times after i copy a folder to onother drive i like to md5 hash compare to make sure they are identical i use the command bellow i run it on the source then on the copy
Get-ChildItem -Path "source" -Recurse -File |
Get-FileHash -Algorithm MD5 |
Export-Csv -Path 'new source\MediaHashes1.csv' -UseCulture -NoTypeInformation
what i want to improve is
i want powershell to hash md5 check the 2 folders compare the results and then tell me if they are identical or not in a single command