PS C:\> dir c:\ -Recurse | ? {$_.GetType().Name -eq 'FileInfo'} | % {$_.FullName + '|' + $_.Length.To String() + '|' + $_.Name + '|' + $_.Extension + '|' + (Get-FileHash -Path $_.FullName -Algorithm SHA1).Hash } > .\filehashes.txt
No comments:
Post a Comment