System Grab Bag

View all TLDR pages from Windows (or from all pages)

Get-FileHash

Calculate a hash for a file. This command can only be used through PowerShell. More information: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-filehash.
  • Calculate a hash for a specified file using the SHA256 algorithm:
    Get-FileHash {{path\to\file}}
  • Calculate a hash for a specified file using a specified algorithm:
    Get-FileHash {{path\to\file}} -Algorithm {{SHA1|SHA384|SHA256|SHA512|MD5}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.