Jump to content

Command Crate ¿about?

Generate SHA256 hashes for files in a directory (PowerShell)

Get-ChildItem -File | ForEach-Object { 
    $hash = Get-FileHash $_.FullName -Algorithm SHA256
    "$($hash.Hash)  $($_.FullName)"
}

Computes the SHA256 hash for each file in a directory and outputs the hash alongside the file's full path.

file management [kb:254]