Get-FileHash
Calculate cryptographic checksums for a file. Note: This command can only be used through PowerShell. More information: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-filehash.
- Calculate the SHA256 checksum for a file:
Get-FileHash
- Calculate the checksum for a file using a specified algorithm:
Get-FileHash -Algorithm
- Calculate the checksum for a file using a deprecated algorithm (no longer available in PowerShell 6 or later):
Get-FileHash -Algorithm
- Check a known checksum of a file:
(Get-FileHash -Algorithm ).Hash -eq ""
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
