Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ThoenigAdrian/065f540dba8f39ad89a71d1e5cca3c3f to your computer and use it in GitHub Desktop.
Save ThoenigAdrian/065f540dba8f39ad89a71d1e5cca3c3f to your computer and use it in GitHub Desktop.
Get all file hashes in power shell in folder
PS C:\Users\aibotics\source\repos\TorchProject1\TorchProject1\x64\Release> Get-ChildItem -File | Sort-Object Name | ForEach-Object {
>> $hash = Get-FileHash $_.FullName
>> [PSCustomObject]@{
>> Name = $_.Name
>> Hash = $hash.Hash
>> Algorithm = $hash.Algorithm
>> }
>> }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment