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

 

1.首先检查powershell版本:

应该为5.1

[powershell]Use powershell to get file hash / 使用powershell获取文件哈希值_第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

[powershell]Use powershell to get file hash / 使用powershell获取文件哈希值_第2张图片

 

 

2.使用方法

 

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

 

[powershell]Use powershell to get file hash / 使用powershell获取文件哈希值_第3张图片

 

 批量操作:

Get-FileHash * -Algorithm SHA1

[powershell]Use powershell to get file hash / 使用powershell获取文件哈希值_第4张图片

 

你可能感兴趣的:([powershell]Use powershell to get file hash / 使用powershell获取文件哈希值)