[powershell]Use powershell to get file hash / 使用powershell获取文件哈希值

Posted alfredsun

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[powershell]Use powershell to get file hash / 使用powershell获取文件哈希值相关的知识,希望对你有一定的参考价值。

 

1.首先检查powershell版本:

应该为5.1

技术图片

 

低版本升级补丁:https://docs.microsoft.com/en-us/powershell/scripting/install/installing-windows-powershell?view=powershell-6

WIN7SP1:https://www.microsoft.com/en-us/download/details.aspx?id=54616

技术图片

 

 

2.使用方法

 

1 Get-FileHash .\\bilibil_master.zip -Algorithm md5
2 Get-FileHash .\\bilibil_master.zip -Algorithm SHA1

 

技术图片

 

 批量操作:

Get-FileHash * -Algorithm SHA1

技术图片

 

以上是关于[powershell]Use powershell to get file hash / 使用powershell获取文件哈希值的主要内容,如果未能解决你的问题,请参考以下文章