以下命令均在Windows Powershell (管理员身份)运行
Get-FileHash D:\utd\test.txt -Algorithm SHA1 | Format-List
Get-FileHash D:\utd\test.txt -Algorithm SHA256 | Format-List
Get-FileHash D:\utd\test.txt -Algorithm SHA384 | Format-List
Get-FileHash D:\utd\test.txt -Algorithm SHA512 | Format-List
Get-FileHash D:\utd\test.txt -Algorithm MD5 | Format-List
Windows10计算文件SHA1 SHA256 SHA384 SHA512 or MD5
原文:https://www.cnblogs.com/NueXini/p/15212850.html